954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

customizing paper size in vb6 Datareport

Greetings!

I creating report in visual basic data report. I want to costumize the paper size that i want to use. I try to make a printing report in a small paper size like bank check size of paper. Anybody have idea how can i do this. is there any other option to print in a small size of paper.

Thank you in advance.

locsin
Light Poster
47 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

Try looking here:-
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.printing.compatibility.vb6.printerobjectconstants_fields.aspx

All sizes should be listed on the above address, else do a google search for vbPRPSA4

Here's an example of use:-
Printer.PaperSize = vbPRPSA4

Cheers, Ricardo

RicardoUK
Newbie Poster
1 post since May 2008
Reputation Points: 10
Solved Threads: 0
 

Using Datareport it is difficult to adjust the paper-size. It will use default paper-size of the printer even though nothing to print. If you want to print a small voucher / bill use the DOS mode printing, like printer.print "XXXX"

bmpvkm
Newbie Poster
5 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You