pendragon Posted October 25, 2004 Posted October 25, 2004 Hi all I am trying to write a label program, everything is fine on my machine, there are 8 labels to a page, 2 across and 4 down. I have set the report up to run on an Epson LX-300 using the windows default driver on both machines, the paper type is Fanfold 8.5in x 12in which exists on both machines and I go via the crystal report view. The problem is when I run the program on the machine that prints the labels I only get 6 on a page and a big gap at the bottom, It doesn't even go to the correct place on the second page, its as if the program has selected a different paper size for some reason. Has anybody got an idea how to fix this please, as the system is supposed to be going live soon. Thanks. Quote
pendragon Posted October 28, 2004 Author Posted October 28, 2004 Turns out that this is a known bug, Bussiness objects give a workaround but this does not work either!!!! Seems they have known about this since march, I am beginning to wonder if they have decided not to do any more fix's for version 2003, hopfully they have sorted it out in the next version. Quote
pendragon Posted November 2, 2004 Author Posted November 2, 2004 I have now managed to get this working, here is the solution just in case anyone else has this problem. It works with any user defined paper size. 1) Create a new form size 2) Add a printer that is just going to be for that paper size, I called it label printer. 3) On the printer properties change the device settings and the printing defaults to your user defined paper size. 4) In the code set the printer name to your new printer and set it up to print direct to the printer. crReportDocument.PrintOptions.PrinterName = "Label Printer"; crReportDocument.PrintToPrinter(1, true, 0, 0); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.