?
Solved

Im trying to printout a form in VB6.

Posted on 2003-03-16
3
Medium Priority
?
225 Views
Last Modified: 2010-05-01
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
Comment
Question by:glenelly22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
DocM earned 200 total points
ID: 8147510
PrintForm sends a bit-by-bit image of a Form object to the printer.
0
 

Author Comment

by:glenelly22
ID: 8152006
Thanks for that. Also do u know, how do i chnge the print layout to landscape?

Thanks Again
0
 
LVL 3

Expert Comment

by:DocM
ID: 8153599
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question