[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.Page 1 / 1
[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.To accomplish this, you should use the WINPRINT-SET-CURSOR opcode with absolute coordinates in inches. This will ensure your print comes at the same position regardless of the printer you use.
[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.To accomplish this, you should use the WINPRINT-SET-CURSOR opcode with absolute coordinates in inches. This will ensure your print comes at the same position regardless of the printer you use.
[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.To accomplish this, you should use the WINPRINT-SET-CURSOR opcode with absolute coordinates in inches. This will ensure your print comes at the same position regardless of the printer you use.
[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.INITIALIZE WPRTDATA-DRAW.
MOVE 5 TO WPRTDATA-DRAW-START-X.
MOVE 5 TO WPRTDATA-DRAW-START-Y.
MOVE WPRTUNITS-CENTIMETERS-ABS TO WPRTDATA-DRAW-DNITS
CALL "WIN$PRINTER" USING WINPRINT-SET-CURSOR WINPRINT-DATA GIVING
PR-CALL-RESULT
MOVE EIN-1 TO PRINT-REC
WRITE PRINT-REC BEFORE ADVANCING 0 LINES
I have printed on an Hp2100(pcl6), Hp2420(pcl6), Hp 6p(pcl5) and Hp4600(pcl6) and my text is in different locations on each of these printers.
I'm setting the font WPRTFONT-COURIER-12-COMP and using version 6.1.0 of the runtime.
Does anybody have any ideas why this would be?
Thanks,
scott
[Migrated content. Thread originally posted on 25 November 2004]
I was wondering if anyone out there has sample code of formatting a W2 form, either the 2-up preprinted form, or the 4 up form that prints on blank paper. I am inexperienced using the Win$printer capabilities of columns, fonts, ete, but I see where this would be great for a form like this, if the programmer gave the operator ability to shift the form slightly for better alignment.The problem here of course is to be able to reproduce on multiple printers as do you, but as it seems quite consistent, I woul believe this should be possible.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.