Good afternoon experts.
I am working on a InfoPath 2007 form, and I set up a Data Connection (Tools --> Data Connection --> Add --> Submit Data --> Next --> AS an Email message --> Next --> in the To field you put [Fax:Someone@5555555555] --> Next --> Send only the active view of the form and no attachment --> Next --> Enter a name for this Data Connection --> Finish) to email the form to a RightFax email and it submits successfully; creating a .tif document, but when this is imaged into one of our image viewing systems, the lines and text are faded, and the drop-down fields do not display. When the form is 'printed manually' (File --> Print --> RightFax Fax Printer --> OK --> the MS Office 2007 Fax Information properties appear --> on the Main tab in the To section you enter the Fax # (e.g. 555-555-5555
)--> Click Send), it displays correctly in the imaging system with all the data intact.
In that data connection when I replace the [Fax:Someone@5555555555] with Someone@5555555555 or 555-555-5555
, the email address cannot be resolved and it errors out.
I know C#, and I was wondering if anyone know how to automate the 'manual' process I outlined above? I have done some with XDocument before, but I don't know enough on automating the File --> Print and setting the varibles (Printer, Fax #, etc.) dynamically. Any assistance would be greatly appreciated.
I was able to send this JScript up:
function CTRL1_5::OnClick(eventObj)
{
// Write your code here
XDocument.PrintOut() ; // Print the Document
}
This will display the Print dialog box. All I need to do is figure how to set those variables dynamically, and trigger the Send.
WHEELS