-
Problem with changing paper size in VB6+WinXP
Hi, all.
I am having troubles with changing paper size in VB6+WinXP.
I have the following code for testing.
'show current paper width and height
Debug.print Printer.Width
Debug.print Printer.Height
Printer.ScaleMode = vbInches
'change the paper size
Printer.Width = 12240 '8.5 inch
Printer.Height = 5760 '4 inch
The original paper size is A4. If things work out correctly, I should get
12240 and 5700 after change the paper size using Printer.Width and
Printer.Height. However, the paper size is still not the size I define
(8.5"x4")
The same piece of code run perfectly ok on a Win98 machine. I am woudering
if this is a bug in VB6. And in addition i know how to "Add a new form" - in WinXp
through Printer->Server Property. I want to do it by code.
Thanks,
Kamalesh.
kamalesh_cb@yahoo.com
Similar Threads
-
Replies: 1
Last Post: 05-07-2003, 06:01 PM
-
Replies: 3
Last Post: 10-15-2002, 02:58 PM
-
Replies: 0
Last Post: 08-05-2002, 08:52 AM
-
By Harish Kumar in forum ASP.NET
Replies: 0
Last Post: 11-22-2001, 06:49 AM
-
Replies: 0
Last Post: 11-21-2001, 03:22 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|