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?
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?