⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.htm

📁 Print Preview Suite v4.76 很不错的 打印预览控件!
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  <li> <font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    SaveToStream(Stream: TStream)<br>
    </b>Saves pages into a stream.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    LoadFromFile(const FileName: String)<br>
    </b>Loads pages from a previously saved file.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <br>
    </font></li>
  <li> <font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    SaveToFile(const Filename: String)<br>
    </b>Saves pages into a file.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure SaveAsPDF(const Filename: String)<br>
    </b>Saves pages as a PDF file.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
  </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function CanSaveAsPDF: Boolean <br>
    </b>Returns True if PDF writer module is installed.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
  </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    UpdateAnnotation<br>
    </b>Forces the control to redraw the current page's annotation and update 
    the screen.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure UpdateBackground<br>
    </b>Forces the control to redraw the current page's background and update the screen.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
      <font SIZE="2"><br>
  </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    UpdateZoom<br>
    </b>Forces the control to recalculate zoom scale and update the screen.</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><br>
    <font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    ConvertPoints(var Points; NumPoints: Integer; InUnits, OutUnits: TUnits)<br>
    </b>Converts the Points coordinates from the input unit specified by InUnits 
    parameter to the unit specified by the OutUnits. The metod uses the horizontal 
    and vertical resolution of the target device</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
    for the conversion</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif"><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    ConvertXY(X, Y: Inetger; InUnits, OutUnits: TUnits): TPoint<br>
    </b></font><font SIZE="2">Returns</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
    the point coordinate converted from the input unit specified by InUnits parameter 
    to the unit specified by the OutUnits. The metod uses the horizontal and vertical 
    resolution of the target device</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
    for the conversion</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">.<br>
    </font><font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    ConvertX(Value: Integer</b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>; 
    InUnits, OutUnits: TUnits</b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>): 
    Integer<br>
    </b></font><font FACE="Verdana, Arial, Helvetica, sans-serif"><font SIZE="2">Returns 
    the conversion of a value specified by the Value parameter </font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">from 
    the input unit specified by InUnits parameter to the unit specified by the 
    OutUnits. The metod uses the horizontal resolution of the target device for 
    the conversion.<br>
    </font><font SIZE="2"><br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    ConvertY(Value: Integer</b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>; 
    InUnits, OutUnits: TUnits</b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>): 
    Integer<br>
    </b></font><font FACE="Verdana, Arial, Helvetica, sans-serif"><font SIZE="2">Returns 
    the conversion of a value specified by the Value parameter </font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">from 
    the input unit specified by InUnits parameter to the unit specified by the 
    OutUnits. The metod uses the vertical resolution of the target device for 
    the conversion.<br>
    <br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaintGraphic(X, Y: Integer; Graphic: TGraphic): TPoint<br>
    </b>Renders the graphic specified by the Graphic parameter on the canvas at 
    the location given by the coordinates (X, Y). The coordinates are in the control's 
    unit. The function returns the size of the graphic in the control's unit.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaintGraphicEx(const Rect: TRect; Graphic: TGraphic; Proporional, ShrinkOnly, 
    Cnter: Boolean): TRect<br>
    </b>Draws the graphic specified by the Graphic parameter in the rectangle 
    specified by the Rect parameter. The coordinates are in the control's unit. 
    The function returns the bounding rectangle of the graphic in the control's 
    unit. <br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaintGraphicEx2(const Rect: TRect; Graphic: TGraphic; VertAlign: TVertAlign; 
    HorzAlign: THorzAlign): TRect; <br>
    </b>Draws the graphic specified by the Graphic parameter in the rectangle 
    specified by the Rect parameter. The coordinates are in the control's unit. 
    The function returns the bounding rectangle of the graphic in the control's 
    unit. <br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaintWinControl(X, Y: Integer; WinControl: TWinControl): TPoint<br>
    </b>Renders the windowed control specified by the WinControl parameter on 
    the canvas at the location given by the coordinates (X, Y). The coordinates 
    are in the control's unit. The function returns the size of the rendered image 
    in the control's unit.</font></li>
</ul>
<ul>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaintWinControlEx(const Rect: TRect; WinControl: TWinControl; Proporional, 
    ShrinkOnly, Cnter: Boolean): TRect<br>
    </b>Draws the windowed control specified by the WinControl parameter in the 
    rectangle specified by the Rect parameter. The coordinates are in the control's 
    unit. The function returns the bounding rectangle of the graphic in the control's 
    unit. <br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>funtion PaintRichText(const 
    Rect: TRect; RichEdit: TCustomRichEdit; MaxPages: Integer; pOffset: PInteger): 
    Integer<br>
    </b>Renders the content of the RichEdit control specified by the RichEdit 
    parameter in the rectangle specified by the Rect parameter. The coordinates 
    are in the control's unit. If the content does not fit to the specified rectangle, 
    the functions draw the rest in a new page. The function returns the number 
    of pages used to render the content. The maximum number of pages allowed to 
    print can be controlled by the MaxPages parameter. When MaxPages is zero, 
    the function prints all the pages. The pOffset parameter is a pointer to an 
    integer containing the offset (zero based) of the text, which rendering begins 
    from that point. When the function does not render all the pages, the variable 
    pointed by pOffset updates to the offset of the next part of the text that 
    should be rendered in the next call, otherwise it sets to -1. The pOffset 
    parameter can be nil. The functions returns the number of pages that are rendered.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>funtion GetRichTextRect(var 
    Rect: TRect; RichEdit: TCustomRichEdit; pOffset: PInteger): Integer<br>
    </b>Claulates the smallest bounding rectangle required for rendering one page 
    of the content of the RichEdit control specified by the RichEdit parameter 
    in the rectangle specified by the Rect parameter. The coordinates are in the 
    control's unit. The pOffset parameter is a pointer to an integer containing 
    the offset (zero based) of the text, which rendering begins from that point. 
    When the content of the rich edit does not fit into the specified rectangle, 
    the variable pointed by pOffset updates to the offset of the next part of 
    the text that, otherwise it sets to -1. The pOffset parameter can be nil. 
    The functions returns the number of bottom of the bounding rectangle..<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    GetPrinterOptions</b><br>
    Sets the paper size and orientation of the control to the currently selected 
    printer's paper and orientation. When the <i>UsePrinterOptions</i> property 
    is True, just after calling the <i>BeginDoc</i> method, the paper size and 
    paper orientation of the control automatically set to the printer's ones.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>procedure 
    SetPrinterOptions</b><br>
    Sets the paper and orientation of the currently selected printer to paper 
    size and orientation of the control. When the <i>UsePrinterOptions</i> property 
    is False, the control automatically calls this method before beginning to 
    print.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    ClientToPaper(const Pt: TPoint): TPoint</b><br>
    Translates a given point from client area coordinates to the paper coordinates. 
    The paper coordinates are in the currently selected measurement unit.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    PaperToClient(const Pt: TPoint): TPoint</b><br>
    Translates a given point from the paper coordinates to the client area coordinates. 
    The paper coordinates are in the currently selected measurement unit.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    FetchFormNames(FormNames: TStrings): Boolean</b><br>
    Fills the specified list with the name of available (predefined and custom) 
    forms in the system.<br>
    </font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    GetFormSize(const AFormName: String; out FormWidth, FormHeight: Integer): 
    Boolean</b><br>
    Gets width and height of the specified form in the selected measurement unit.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <b>function 
    AddNewForm(const AFormName: String; FormWidth, FormHeight): Boolean;</b><br>
    Adds a custom form to the system. The form's size should be expressed in the 
    selected measurement unit. The user must have full rights to the printer driver 
    to call this function.<br>
    </font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>function 
    RemoveForm(const AFormName: String): Boolean</b><br>
    Removes a custom form.</font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
    This function does not delete the standard forms that the operating system 
    defines. The user must have full rights to the printer driver to call this 
    function.<br>
    </font></li>
</ul>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><a NAME="EVENTS"></a><br>
  <font SIZE="4">KEY EVENTS</font></b></font></p>
<ul>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">OnBeginDoc: 
    TNotifyEvent<br>
    </font></b><font SIZE="2"> Occurs when <i>BeginDoc</i> method calls.<br>
    <br>
    </font></font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>OnEndDoc: 
    TNotifyEvent<br>
    </b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Occurs 
    when <i>EndDoc</i> method calls.<br>
    <br>
    </font></li>
  <li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">OnNewPage: 
    TNotifyEvent<br>
    </font></b><font SIZE="2">Occurs immediately after a new page is created.</font><br>
    <br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -