cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Page Format - A6 - Printer Initialization config

former_member352062
Discoverer
0 Likes
3,296

Hi Guys,

Our customer has take a new printer HP Laserjet M506 and we want to print SAP script on A6 page format as SAP does not have the same so in SPAD I have created a page format with desired size 148 X 105, after that I have created a Format type and assigned the same to our custom device type.

In Printer initialization, Reset after exit,End of page and End of line I copy pasted DIN4 code however It does not work. In Tray 01 i.e. Manual feed I have put in A6 size sheets .When I give print it shows error Insert Letter Size page and when I select Any size from printer configuration then it print blank page. Just to check I printed the same form on A4 sheet then Print came on top right i.e. Print is going however Location or size is not properly passed hence Request you expert to kindly help me know the Printer Initialization and other configuration to be done for A6 page type.


Regards,

Deepak Jain.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hello Deepak,

If it is problematic to set the printer initialization, you can use device type SAPWIN and set the page size according to the 2nd point of #2239307.

In this case the form alignment might need to be adjusted because of the device type change. See Note #183948.

Best regards,

Bálint Ujvári

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

Check SAP KBA 2239307 - "Creating Custom Page Formats for SAPScript and Smartforms" for details.


Regards,

David

former_member352062
Discoverer
0 Likes

Hi David,

Thank you for the response.

Actually I have gone through the SAP note 2239307 and its subsequent note 3102 in which it is said to defined page length however struggle which I have is related to defining the Page length in printer initialization i.e. what command should I write to set it for A6 page size.

I have SAP script spacing 6 lines per inch. For Me I am printing in portrait mode so height is 148 MM i.e. 5.8 Inch that roughly for 6 lines per inch become 35 lines and I think this I suppose to pass in Printer initialization.

How to pass is my query , I have tried \e&l3335p as &l#P means custom Page length.


Please find below what all I have tried.

# Done by Deepak for testing A6 size

# \e&l24A -- Didnt work as it seems it does not have A6 predefined in Printer

# DJ- If A6 does not work set Page size as custom # then pass length of A6 uncomment below lines

\e&l101A --> This will select custom size that I have defined in Printer

\e&l3335p --> this I have passed 35 lines in Hex (I am not sure if 3335 I need to pass or Ascii 0x23 however I havent converted in ASCII initialization)


You help on the same would be great.


Regards,

Deepak Jain.