Solved

Flexibility of Printform, Printing Mulitple forms and Forms with Tabs

Posted on 2004-08-02
1
185 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
1 Comment
 
LVL 19

Accepted Solution

by:
Shauli earned 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 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