?
Solved

Flexibility of Printform, Printing Mulitple forms and Forms with Tabs

Posted on 2004-08-02
1
Medium Priority
?
215 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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