PDA

Click to See Complete Forum and Search --> : Windows NT Printer - Paper Size


Merlin
Dec 7th, 2000, 02:18 PM
We recently developed some batch reports to run on an NT server on our network. The only problem is, unlike Windows 95/98 where you can define a custom paper size in code, on NT you need to set up a Custom Paper Form on the Printer Server. I did that. Then, in code, I referenced the printer.papersize.item(i) and that pointed to that Custom Paper Form. This worked, until..... the print server was re-booted and the papersize.items re-indexed to different index references to the paper sizes.

My question is this, Is there anyway that anyone knows of to reference the Paper Form Name on an NT box through VB code? This would solve the index issue in case the server re-boots. I have been searching for code on the web and have come up empty. Perhaps an API call? I cannot develope with WMI as the developement machines are Windows 95/98. Anyone with even the remotest idea please respond!!!!!

Thanks,
Merlin