Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2005

Tip: Looking for answers? Try searching our database.

Printing from a button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jimbo - 14 Nov 2005 19:49 GMT
I need a row of buttons that print various views. Each button will have a
view to print then return to the main form. I just get this working. Anybody
willing to help?
Franck Dauché - 14 Nov 2005 20:41 GMT
Hi,

You can use code to do this (C# for example):
To Switch View:
thisXDocument.View.SwitchView("MyViewName");
To print:
thisXDocument.PrintOut();

Regards,

Franck Dauché

> I need a row of buttons that print various views. Each button will have a
> view to print then return to the main form. I just get this working. Anybody
> willing to help?
Jimbo - 15 Nov 2005 13:19 GMT
How about in Visual Basic?

> Hi,
>
[quoted text clipped - 11 lines]
> > view to print then return to the main form. I just get this working. Anybody
> > willing to help?
Franck Dauché - 15 Nov 2005 14:29 GMT
Hi,

In VB, the 2 lines become:
thisXDocument.View.SwitchView("MyViewName")
thisXDocument.PrintOut()

Regards,

Franck Dauché

> How about in Visual Basic?
>
[quoted text clipped - 13 lines]
> > > view to print then return to the main form. I just get this working. Anybody
> > > willing to help?
Franck Dauché - 15 Nov 2005 16:42 GMT
OK, from your other post, it looks like you are after VBScript.
Use XDocument instead of thisXDocument in my previous post.
For the .PrintOut, your form will have to be fully trusted.

Regards,

Franck Dauché

> How about in Visual Basic?
>
[quoted text clipped - 13 lines]
> > > view to print then return to the main form. I just get this working. Anybody
> > > willing to help?
Jimbo - 15 Nov 2005 17:11 GMT
Thanks Franck,
I switched to Visual Basic using Visual Studio. I have to install using
RegForm, it works. Thanks for you help

> OK, from your other post, it looks like you are after VBScript.
> Use XDocument instead of thisXDocument in my previous post.
[quoted text clipped - 21 lines]
> > > > view to print then return to the main form. I just get this working. Anybody
> > > > willing to help?
Franck Dauché - 15 Nov 2005 17:54 GMT
You are welcome.

Good luck with your InfoPath developments.  Don't hesitate to open a new
thread if you have any other issue.

Regards,

Franck Dauché

> Thanks Franck,
> I switched to Visual Basic using Visual Studio. I have to install using
[quoted text clipped - 25 lines]
> > > > > view to print then return to the main form. I just get this working. Anybody
> > > > > willing to help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.