Print and Save using a Button Control

M

mdsmitty

I need to have a button control print and save...can anyone tell me how to do
this.
 
R

RickH

thisXDocument.PrintOut()
thisXDocument.Save() 'or SaveAs
You need Full trust
If you are doing this for a business, you need to code sign your form before
publishing it, for everything to work smoothly for Full trust forms.....
 
M

mdsmitty

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top