Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flexibility of Printform, Printing Mulitple forms and Forms with Tabs

Posted on 2004-08-02
1
Medium Priority
?
221 Views
Last Modified: 2010-05-02
I have used the Printform command in VB before.  It works very well for printing the screen currently displayed.  Is there any flexibility in this command?  For example can I set up some code that will print multiple forms without making the user open the form, click the "print' button (which executes the Printfrom), close the form and repeat as many times as their are forms.  I would like them to be able to print a group of forms with 'one click'.  

Also I have a form set up using Tabbed Dialog Controls.  Is there any way to have a 'one click' solution to printing all of the tab panels, each panel on a seperate page.  I know that the user can click on each tab individually and then print it but once again I am looking for convenience for the user.

Any help would be greatly appreciated.
0
Comment
Question by:mlcktmguy
[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
1 Comment
 
LVL 19

Accepted Solution

by:
Shauli earned 500 total points
ID: 11700031
You dont need to open the forms you want to print using printform.  And, yes, you can print the SSTab tabs as well. See below an example:

Private Sub Command1_Click()
Dim c As Integer
Form1.PrintForm
Form2.PrintForm
For c = 0 To Form3.SSTab1.Tabs - 1
    Form3.SSTab1.Tab = c
    Form3.PrintForm
Next c
End Sub

In this example you cal form2 and form3 from a command button in form1, and loop among the tabs on form3.

S
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

596 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