Setting the Default Width for Displaying a Document.

September 19, 2006 | KB: 1011633
WebLink 7.0.5

Summary

WebLink 7.0.5 opens up documents to the width of the document window's toolbar. This default value is set to 611 pixels.

More Information

On the DocView.aspx page, modify the "ImageDisplay" element's "DefaultWidth" property if you want a different default width.

Note: Before modifying your WebLink ASPX pages, make sure you understand how to restore them if a problem occurs.

To modify the default width

  1. Using a text editor, open DocView.aspx, which is located in the "Web Files" subfolder of your WebLink 7.0.5 installation folder.
  2. Scroll down and locate the following line:

    <WEBLINK:IMAGEDISPLAY id="TheImageDisplay" runat="server">

  3. Add the "DefaultWidth" property and set it to the desired width in pixels. After your modification, the line should look similar to the following:

    <WEBLINK:IMAGEDISPLAY id="TheImageDisplay" runat="server" DefaultWidth="611">

    Make sure that the value for "DefaultWidth" is set to your desired width.