A piece of A5 horizontal document, when SmartForm was made, it was natural to choose DINA5, and then horizontal release. During the test, it was normal to use a laser printer. When an exception is found in actual use, you cannot define a custom paper (210X148) horizontal layout A5 by yourself. You must also set the same custom paper type on the printer side, and set it to the default paper type. Dot Matrix printer, narrow Row printing paper, the format and positioning are normal.
On the one hand, I found the SAP custom paper method on the Internet. I don't need to talk about how to customize the paper in the operating system:
1. Run the transaction code, select the full management button on the toolbar, and select the device type page (there are four buttons on this page: [device type], [print control], [format type], [page format ]);
2. Select page format to go to the page format list page, and select the modify icon on the toolbar. The new icon appears on the left of the toolbar (note: if you do not click the [modify] icon, the [new] icon is not displayed. Select the [new] icon to enter the page format interface. Enter the page format name "zkz ", select the Portrait "Portrait", that is, the vertical, the paper size is: Paper width "215mm", the paper length "140mm"; (Note: if the direction is set to vertical, the paper is printed vertically. If the direction is set to horizontal, the paper is printed horizontally. If the direction is set to 140*215, the paper can be printed horizontally ); save and exit;
3. Select format type to go to the format list page. Select the new icon on the toolbar to go to the new format page. For the format type, enter "215*140 ", select "sapscript" or "abap list" as the type. Select "zkz" as the page format, enter "xxxxx" as the comment, and save and exit;
4. Select device type to go to the device type list page. In the list, select "CNSAPWIN" as the device type and double-click the device type (Change) page, select the format icon on the toolbar to go to the device type format modification page. Select the new icon, in the displayed dialog box, enter "215*140" in the format set above. Click OK.
5. If you use write to output a report, double-click the preceding format type "215*140" To Go To The maintain format interface. Double-click the place you want to edit to go to the code writing interface, you can write the row spacing, font spacing, font size, and font size for printing in the code. (This step is very important. I just click the graph and the page is abnormal. For the specific setting code, refer to the existing paper code)
At this point, the paper printing format of Pinhole paper is set for SAP report printing, followed by the usage in the report:
6. The write output method does not need to be set in the program, but requires the user to select "215*140" as the "format type" set above during printing ";
7. smarform: when using the transaction code smartforms to draw a table, select "215*140" as set above in "page format" in "output options" in "Table properties.
8. For dot matrix printers, the default paper size is A4. We need to customize the size of a paper in the format of 215*140, the actual size can be set to 214.5mm/139.5mm.
So far, your ABAP report can print out the correct format using dot matrix printing.
Note: Due to the interface problem between SAP and the dot matrix printer, if the table line is too small, some horizontal lines and vertical lines are sometimes missing from the printed table, the correct solution is: The table line of the bold table, it is best to set it to 20tw. (