View Single Post
  #1  
Old June 24th 04, 09:41 AM
dhiman
external usenet poster
 
Posts: n/a
Default Visual Basic printing problem

I have developed an Application in Vb 6.0 which runs on
windows 98 platform. The application prints various
DataReports.
My problem is that while printing the reports the printer
doesnot overrides the default papersize setting of the
printer.
The default paper size is 8 1/2" X 11" but i have set the
printer paper size to 9" X 12" in the vb code prior
printing the data report.

The code which i have used is

Printer.PaperSize = vbPRPSUser
printer.width=1440*9
printer.heigth=1440*12
Datreport6.print
printer.enddoc

But the problem reamins the same.
The printing is Ok if i manually change the printer
setting by changing the deafult paper size of printer from
control panel.

Looking for an urgent help.Please If any has the solution
for this it would be quite a help for me.

Thanx
Dhiman