Click or drag to resize
WordDocumentShowPage Method
Pops up a custom dialog box in browser to show the saving result in HTML format.

Namespace: Aceoffix.WordReader
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public void ShowPage(
	int Width,
	int Height
)

Parameters

Width
Type: SystemInt32
The width of dialog box, in pixels.
Height
Type: SystemInt32
The height of dialog box, in pixels.
Remarks

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.

Examples

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();
}
See Also