I am able to get the Print to work but I get errors when the form is being
saved. I seperated the bottons...one is Print and the other is Save. The
Save button will not work, here is the code I have attempted. I tried this
"thisXDocument.Save()" but
the following error occurred:
Object required: 'thisXDocument'
File:script.vbs
Line:36
This is my current code which is not working either.
Sub CTRL14_7_OnClick(eventObj)
XDocument.SaveAs
End Sub
> thisXDocument.PrintOut()
> thisXDocument.Save() 'or SaveAs
[quoted text clipped - 4 lines]
> > I need to have a button control print and save...can anyone tell me how to do
> > this.
Greg Collins [InfoPath MVP] - 25 May 2005 23:08 GMT
"thisXDocument" is if you are using managed code (C#.NET or VB.NET). Since you are using script, you would use "XDocument" instead.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
I am able to get the Print to work but I get errors when the form is being
saved. I seperated the bottons...one is Print and the other is Save. The
Save button will not work, here is the code I have attempted. I tried this
"thisXDocument.Save()" but
the following error occurred:
Object required: 'thisXDocument'
File:script.vbs
Line:36
This is my current code which is not working either.
Sub CTRL14_7_OnClick(eventObj)
XDocument.SaveAs
End Sub
"RickH" wrote:
> thisXDocument.PrintOut()
> thisXDocument.Save() 'or SaveAs
[quoted text clipped - 6 lines]
> > I need to have a button control print and save...can anyone tell me how to do
> > this.