WordDocumentShowPage Method |
Namespace: Aceoffix.WordReader
If you want to pop up a custom dialog box to show the saving result in HTML format, you should call this method.
The message page shown in dialog box is the current SaveDataPage.By default, the SaveDataPage will display nothing. You can add friendly prompts in SaveDataPage.
The following example shows how to use the ShowPage method to display a custom saving error to user.
protected void Page_Load(object sender, EventArgs e) { Aceoffix.WordReader.WordDocument wd = new Aceoffix.WordReader.WordDocument(); string strCompanyName = wd.OpenDataRegion("CompanyName").Value; if(strCompanyName != "") { //Save the data to database. } else { Response.write("Failed to save. Company name cannot be empty."); // This is a simple error message, you can add friendly message to the current page. wd.ShowPage(380, 200); // If the company name is empty, AceoffixCtrl will pop up a dialog box to show the custom error page. } wd.Close(); }