Link to home
Start Free TrialLog in
Avatar of kanthiperera
kanthiperera

asked on

Print a VB form not using Print form method

Hi,
I need to print a VB form. First, I used Printform method. But it only prints with default printer settings. I need to change Orientation(Portrait/Landscape), Number of copies and Default Printer as I want. I used Print Dialog control but I don't know how to send these info to the printer. How do I code these in my application after the show Printer statement.

Does anyone have the code for printing the form changing these settings? Any help would be greately appreciated.

Avatar of rpai
rpai

Could you use the Printer object or the CommandDialog.ShowPrinter?
See here:- http://members.aol.com/VBOLUG/pobject.htm
Have a look here:

http://www.qbdsoftware.co.uk/moth/qprinter/index.htm

There is a good control to print a form, with all the options...
Hope this helps.
Avatar of kanthiperera

ASKER

Hi Marconovaro,
Thanks for the response. It gives me little help. But my form has an Image and texts. Also I'm a beginner. So some contexts are complicated for me. So I think only way I can do is make a reference to the Qprinter. If you can help me to go further I appreciate it. Thanks.
My thanks go to every one for helping me. I was able to find a solution using those URLs, which two of you have mentioned.
So 75 points to rPai
   25 points to Marconovaro

Thanks Guys!!
My thanks go to every one for helping me. I was able to find a solution using those URLs, which two of you have mentioned.
So 75 points to rPai
   25 points to Marconovaro

Thanks Guys!!
ASKER CERTIFIED SOLUTION
Avatar of rpai
rpai

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please split my points between rpai and Marconovaro.
75 goes to rpai. The URLs provided were very helpful.
Thanks.
Hi Guys...

  I'm trying to print a HTML file using Visual Basic. Whats the easiest and quickest possible way I could go about doing this?

Thanks