|
|
|
What can I do when a form template cannot work properly in InfoJet Service?
|
Please email the form template file(.xsn) that cannot work properly in InfoJet EditPart to us
( Contact Us),
and tell us the details of your system environment.
We will test it at the source code level,
and improve InfoJet Service.
We acknowledged sincerely your help.
|
|
|
Does InfoJet Service support multi language? |
|
Yes, it does.
|
|
|
How to use "Disable Error Formatting" menu item?
|
|
Generally, You need to check "Disable Error Formatting"
menu item before printing the document.
|
|
|
|
|
How to enable Submitting via Email? |
|
To enable submitting via Email, the key "InfoJetSoft.Service.SmtpServer" and "InfoJetSoft.Service.MailFrom" must be set.
InfoJet Service will use the "MailFrom" account on "SmtpServer" to send emails.
If the Smtp Server needs authentication, the key "InfoJetSoft.Service.MailUserName" and "InfoJetSoft.Service.MailPassword" must be set also.
"InfoJetSoft.Service.TempFolder" is need also, InfoJet Service will cache Email attatchment(xml file) in it. And please grant "Full Control" of the folder to the account running InfoJet Service.
If impersonation is enabled, you'd better to grant "Full Control" to everyone.
|
|
|
How to print the MHT file exported from the InfoPath web form? |
|
You could use the following code to print the exported MHT file by clicking a button:
function CTRL23_5::OnClick(eventObj)
{
XDocument.View.Export( "c:\\test.mht", "MHT" );
if( Application.InfoJetService )
{
Application.RunClientCode( "var mhtWindow = window.open( window.location.protocol + '//' + window.location.host + '" + XDocument.View.ExportPath + "');" );
Application.RunClientCode( "mhtWindow.print();" );
Application.RunClientCodeOnly();
}
}
In the exported MHT file, the button control will be hidden, the dropdown, radio and check box will be converted to the plain text.
This feature requires the configuration key "InfoJetSoft.Service.InlineFilePath". The MHT file will be exported to not the folder C:\ but the InlineFilePath in InfoJet Service.
And you could use the following html button outside of InfoPath web form to open the MHT file exported from the current form view in a new browser window:
<input type="button" onclick="InfoJet_OpenExportedMHT();" value="Print Version">
This feature requires the configuration key "InfoJetSoft.Service.InlineFilePath" also.
|
|
|
How to clear the form data cached in HTTP sessoin by InfoJet Service? |
|
The session key of the form data cached by InfoJet Service is stored in the HTML hidden field "xdoc_param_form_id" of the InfoPath web form(InfoJetForm.Xhtml).
So, when you want to clear the session data used by the current form, you need to submit this session key.
Generally, there are two situations:
1. The user submitted the form to save it, and the user is redirected to another page.
The value of the session key has been contained in the form, so you could use the following code directly:
InfoJetForm savedForm = InfoJetService.ReloadForm(Context);
InfoJetService.ClearFormCache(Context);
//Redirect to another page.
2. The user clicked one "Close" button to close the browser directly.
In this case, the whole form won't need to be submitted, but you need to submit "xdoc_param_form_id" to the server side in JavaScript:
var formId = document.getElementById("xdoc_param_form_id");
if( formId != null ){
document.location="ClearSession.aspx?xdoc_param_form_id="+formId.value;
}
And in ClearSession.aspx:
<html>
<% InfoJetService.ClearFormCache(Context) %>
<script language=javascript>window.opener=null; window.close();</script>
</html>
The method ClearFormCache() will clear the temp files used by the form also.
And while user logoff, please call the following method to clear the http session data and the temp files used by the current user:
InfoJetService.ClearUserCache(Context);
The demo program of InfoJet Service contains some codes about this, please reference it.
|
|
|
How to use custom picture link function? |
|
You need to rewrite the function InfoJetCustom_OnLinkedPictureClick(event, linkedPicture) in infojet.js. InfoJet
Service will call this function whenever user clicks
linkedPicture. You also need to set src attribute of
linkedPicture in this function,
and then to call InfoJet_UpdateField(linkedPicture).
|
|