Win98banter

Win98banter (http://www.win98banter.com/index.php)
-   Software & Applications (http://www.win98banter.com/forumdisplay.php?f=4)
-   -   Visual Basic printing problem (http://www.win98banter.com/showthread.php?t=4316)

dhiman June 24th 04 09:41 AM

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

Ron Badour June 24th 04 01:59 PM

Visual Basic printing problem
 
Please post to a VB newsgroup--maybe a VB expert can help.

--
Regards

Ron Badour, MS MVP for W98
Tips: http://home.satx.rr.com/badour
Knowledge Base Info:
http://support.microsoft.com/default.aspx?pr=kbinfo

"dhiman" wrote in message
...
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




dhiman June 25th 04 06:58 AM

Visual Basic printing problem
 
can u please suggest me the address for the vb 6.0
newsgroup
dhiman
-----Original Message-----
Please post to a VB newsgroup--maybe a VB expert can help.

--
Regards

Ron Badour, MS MVP for W98
Tips: http://home.satx.rr.com/badour
Knowledge Base Info:
http://support.microsoft.com/default.aspx?pr=kbinfo

"dhiman" wrote in message
...
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



.


Ron Badour June 25th 04 03:29 PM

Visual Basic printing problem
 
I suggest you open a news account in Outlook Express and for the server
name, use: msnews.microsoft.com. Once the account is established and the
newsgroups are downloaded, click on newsgroups on the toolbar. You can use
the display feature to display groups which contain:
microsoft.public.vb
--
Regards


Ron Badour, MS MVP for W98
Tips: http://home.satx.rr.com/badour
Knowledge Base Info:
http://support.microsoft.com/default.aspx?pr=kbinfo

"dhiman" wrote in message
...
can u please suggest me the address for the vb 6.0
newsgroup
dhiman
-----Original Message-----
Please post to a VB newsgroup--maybe a VB expert can help.

--
Regards

Ron Badour, MS MVP for W98
Tips: http://home.satx.rr.com/badour
Knowledge Base Info:
http://support.microsoft.com/default.aspx?pr=kbinfo

"dhiman" wrote in message
...
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



.





All times are GMT +1. The time now is 03:12 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Win98Banter.com