I am using the old track feed printers to print tickets. The paper size is 210x145. I have set the printdocument papersize to this setting, but the printer still spools A4 size paper....
Another application that I have wich also prints out these tickets prints the correct size paper. I must be missing a setting somewhere
Is there some other setting that I need to change as well?
I found an article somewhere in msdn that says that in order to use custom size paper on win2k or nt4, you first need to define the form for it (Open printers folder. Right click anywhere in folder, select server properties).
Once u have defined a form you have to loop through the PaperSizes collection of the printersettings object to find the form. You then have to assign the papersize to the defaultpagesetting's papersize property. Creating a form with the papersize constructor does not work......
If that doesn't give you enough control over printing (DrawString is difficult or maybe impossible to use to get multiple fontstyles/fonts) then take a look at this thread: