microsoft.public.scripting.vbscript - Microsoft Office Project
I want to save and then be able to restore the printer paper size. Something like: WriteLine(lFileNum, gAddressesPD.DefaultPageSettings.PaperSize.ToString) Then: Dim lTempPaperSize As PaperSize Input(lFileNum, lTempPaperSize) gAddressesPD.DefaultPageSettings.PaperSize = lTempPaperSize Of course that is not correct but I don't know how to do it. Can anyone help?
Have you successfully added a custom form and then retrieved the paper size using VB. I tried GetDeviceCaps(Hdc, PHYSICALWIDTH) GetDeviceCaps(Hdc, PHYSICALHEIGHT) and DefaultPageSettings.PaperSize But neither approach returns the correct values. If you've done the above successfully I'd like to know so I'll keep looking for a bug. If you've had problems, that of cause would be good for me to know. Thanks in advance for any help at all
We develop our reports on laser printers (Kyoseras mainly, or Oki), at one customer site they wish to print the delivery notes on dot matrix. We set the reports to default printer, but the dot matrix is not their default printer. When they switch to this printer in the dialog box, the paper size changes to letter. We have set the default paper size in XP to a4, but crystal doesn't appear to take any notice. Oddly I think the paper size on the default printer is a4. Does anyone know of any way we can enforce the selection of the printer default paper size at this point (report.printersetup(0))? regards, Iain