Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Im trying to printout a form in VB6.

Hi
   I want to print out a form in its current format. I have looked at:-
    Printer.Print S_no.Text
    Printer.Print A_Charge.Text
    Printer.EndDoc
but this simply prints the text out in the top left hand conrer. Is there anyway to printout the complete form in the format that I have designed it in?

Thanks
Jason
0
glenelly22
Asked:
glenelly22
  • 2
1 Solution
 
DocMCommented:
PrintForm sends a bit-by-bit image of a Form object to the printer.
0
 
glenelly22Author Commented:
Thanks for that. Also do u know, how do i chnge the print layout to landscape?

Thanks Again
0
 
DocMCommented:
Hy,
Use API to change printer orientation with PrintForm.
From Microsoft, PAGESET.DLL allows you to programmatically change the printer orientation.

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B198901
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now