Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2006, 04:59 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Printer Object in VB

Hi Folks,
I am stuck up with this printer object. I would be obliged if any one can help me out as i dont know much about the printer object.

I would like to know how to set the printable area for a printer object.

For example, when i give
Printer.CurrentX = 7: Printer.CurrentY = 0
Printer.Print text1.text;

it is printing at a Y position which is below the place i need it to be printed. Since it doesnt accept -ve values, kindly suggest as to how to give offset for the printing area.

And please i need it quite urgently..

Thankss
Anil
 
Old March 23rd, 2006, 03:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the position 0,0 is the start point of the "printable" area of the printer. usually there is a small border around the paper that cannot be printed.
Use ScaleWidth and ScaleHeight to know the size of the printable area.

Marco

PS you must have the right driver for that printer, otherwise you can get wrong values





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Object rudycoop Beginning VB 6 1 December 28th, 2007 12:01 PM
Printer Object in .NET ashu_from_india Pro VB.NET 2002/2003 4 January 23rd, 2007 06:25 AM
Printer Object in .NET ashu_from_india VB.NET 0 August 25th, 2006 08:56 PM
Printer Object in .NET ashu_from_india General .NET 0 August 25th, 2006 08:49 PM
Printer Object in VB.NET ashu_from_india General .NET 1 March 8th, 2006 07:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.