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
Solved

Flexibility of Printform, Printing Mulitple forms and Forms with Tabs

Posted on 2004-08-02
1
194 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

856 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