<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > GeneralScript > Page > Method >SetExportParameter |
Sets the viewer parameter values associated with saving a report.
Prototype :
void SetExportParameter
(
string ViewerParameterName,
string ViewerParameterValue
)
Arguments :
ViewerParameterName |
viewer parameter name |
ViewerParameterValue |
viewer parameter value |
Reference :
If you set the same parameters several times, the first value that is not an empty value will be applied.
Supported parameters are shown below in this function.
•export.zipfilename_postfix, export.zipfilename_prefix, export.zippassword
•html.password
•mht.password
•pdf.masterpassword
•pdf.userpassword
•tiff.dpi
•tiff.encode
•tiff.jpg_quality
Example :
var objPage = ReportTemplate.GetCurrentPage();
if(objPage != null) {
objPage.SetExportParameter("html.password", "ForCS");
}
Available Events :
OnAddToPage, OnCheckValidity, OnClick, OnEndBind, OnFocus, OnKillFocus, OnLocationUpdated, OnValueChanged