Solved

Faxing a VB5 form or frame from a VB5 form

Posted on 1998-08-30
2
206 Views
Last Modified: 2010-04-30
How would you suggest I fax either a VB5 form or a frame from a VB5 form?
0
Comment
Question by:gcassel
2 Comments
 
LVL 4

Accepted Solution

by:
mcix earned 100 total points
ID: 1431940
The easiest method would be to simply use the Print Method of the Object you want to Print.
0
 

Author Comment

by:gcassel
ID: 1431941
Thanks.  I think this may be what I am looking for however I would first need to change the printer default at run-time to the fax.  I can add the commondialog box to my form so I can change printers.  Do I simply define the printer as the fax in the Print dialog box and then add the following to my form to change to my fax at run-time?  

frmForm.PrinterDefault = True

Private Sub cmdCommand1.Click()
   frmForm.PrintForm
   Printer.EndDoc
End Sub

then to convert back to the printer
   fraFrame.PrinterDefault = False ??

gcassel
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now