A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Software & Applications
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Visual Basic printing problem



 
 
Thread Tools Display Modes
  #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
  #2  
Old June 24th 04, 01:59 PM
Ron Badour
external usenet poster
 
Posts: n/a
Default 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



  #3  
Old June 25th 04, 06:58 AM
dhiman
external usenet poster
 
Posts: n/a
Default 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



.

  #4  
Old June 25th 04, 03:29 PM
Ron Badour
external usenet poster
 
Posts: n/a
Default 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



.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown problem when filesharing enabled Ivan General 2 July 5th 04 12:48 PM
printing problem namruhtmik Printing 2 July 4th 04 04:47 AM
win98 clients all have printing problems in morning Matt Printing 1 June 30th 04 06:00 PM
Problem navigating in the BIOS Keith General 3 June 7th 04 09:14 PM
Hp 710c problem, printing by network ? Juliano Setup & Installation 0 May 28th 04 02:14 PM


All times are GMT +1. The time now is 07:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.