Print Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPPdfCreator

Declaration

function Print: WordBool;

function Export: WordBool;

Description

Export the text in editor #1.

VB6 Note:

If you are using VB6 you cannot use this method since Visual basic overrides this name with special functionality.

In TextDynamic we added the method "Export" to avoid this complication.

In wRTF2PDF You can use the command 1313 instead of PDFCreator.Print:

VB6 Example: wRTF2PDF:

  Dim Memo As IWPEditor ' TextDynamic uses IWPMemo.

  Dim PDFCreator As IWPPdfCreator

  ' TODO: Modify license codes

  PDFControl1.StartEngine "wPDFControlDemo.dll", "lic", "lic", 0

  Set Memo = PDFControl1.Memo

  Set PDFCreator = PDFControl1.PDFCreator

  Memo.LoadFromFile "sometext.rtf", False, "AUTO"

  PDFCreator.PDFFile = "new.PDF"

  ' PDFCreator.Print - this cannot be used due to VB "bug"

  ' Use command instead

  PDFControl1.ExecIntCommand 1313, 0

Category

Load and Save

Printing


[idh_iwppdfcreator_print.htm]    Copyright © 2007 by WPCubed GmbH