How To Use the VPE Control
VPE .NET Control
General Usage
Class Names and Namespaces
Exceptions
Understanding the Data Types and Declarations
Visual Basic .NET
C#
VPE Java Control
Exceptions
Understanding the Data Types and Declarations
VPE ActiveX
Where are the constants like 'VORIENT_PORTRAIT' defined?
Important Note for Users of Visual Basic
Understanding the Data Types and Declarations (Visual Basic)
Exceptions
CreateObject Call
Early Binding
Visual FoxPro Note
MFC: Using the VPE ActiveX with the MFC without placing it in a Dialog Resource
Using the VPE ActiveX in a CFormView derived class
VPE VCL
Understanding the Data Types and Declarations (Delphi)
Exceptions
Events Generated by the .NET Control
AfterDestroyWindow Event - .NET
Closing Event - .NET
AfterCloseWindow Event - .NET
BeforeOpenFile Event - .NET
AfterOpenFile Event - .NET
BeforeSaveFile Event - .NET
AfterSaveFile Event - NET
HelpRequested Event - .NET
AfterAutoPageBreak Event - .NET
RequestPrint Event - .NET
BeforePrintNewPage Event - .NET
PrintDevData Event - .NET
BeforeMail Event - .NET
AfterMail Event - .NET
ObjectClicked Event - .NET
UDOPaint Event - .NET
AfterControlEnter - .NET
RequestControlExit - .NET
AfterControlExit - .NET
AfterControlChange - .NET
AfterFieldChange - .NET
Events Generated by the Java Control
AfterDestroyWindow Event - Java
Closing Event - Java
AfterCloseWindow Event - Java
BeforeOpenFile Event - Java
AfterOpenFile Event - Java
BeforeSaveFile Event - Java
AfterSaveFile Event - NET
HelpRequested Event - Java
AfterAutoPageBreak Event - Java
RequestPrint Event - Java
BeforePrintNewPage Event - Java
PrintDevData Event - Java
BeforeMail Event - Java
AfterMail Event - Java
ObjectClicked Event - Java
AfterControlEnter - Java
RequestControlExit - Java
AfterControlExit - Java
AfterControlChange - Java
AfterFieldChange - Java
Events Generated by the ActiveX
AfterDestroyWindow Event
RequestClose Event
AfterCloseWindow Event
BeforeOpenFile Event
AfterOpenFile Event
BeforeSaveFile Event
AfterSaveFile Event
DoHelp Event
AfterAutoPageBreak Event
RequestPrint Event - ActiveX
BeforePrintNewPage Event
DoPrintDevData Event
BeforeMail Event
AfterMail Event
DoObjectClicked Event
DoUDOPaint Event
AfterControlEnter
RequestControlExit
AfterControlExit
AfterControlChange
AfterFieldChange
Events Generated by the VCL
OnDestroyWindow Event
OnRequestClose Event
OnCloseWindow Event
OnBeforeOpenFile Event
OnAfterOpenFile Event
OnBeforeSaveFile Event
OnAfterSaveFile Event
OnHelp Event
OnAutoPageBreak Event
OnRequestPrint Event - VCL
OnPrintNewPage Event
OnPrintDevData Event
OnBeforeMail Event
OnAfterMail Event
OnObjectClicked Event
OnUDOPaint Event
OnAfterControlEnter
OnRequestControlExit
OnAfterControlExit
OnAfterControlChange
OnAfterFieldChange
Management
OpenDoc
IsOpen
CloseDoc
SwapFileName
EditProtection
License
EnableMultiThreading
EnableURLs
LastError
Preview
PreviewDoc
CenterPreview
BringPreviewToTop
PreviewCtrl
ClosePreview
IsPreviewVisible
SetFocus
VpeSetFocus
Focus
VisualPage
DispatchAllMessages
Refresh
DocExportType
Compression
OpenFileDialog
SaveFileDialog
OpenFileName
SaveFileName
WriteDoc
WriteDocPageRange
WriteDocStream
WriteDocStreamPageRange
ReadDoc
ReadDocPageRange
ReadDocStream
ReadDocStreamPageRange
DocFileReadOnly
ExternalWindow
BorderStyle
Caption
Text
ToolBar
tbOpen
tbSave
tbPrint
tbPrintSetup
tbMail
EnableMailButton
tbScale
tbGrid
GridMode
GridVisible
tbNavigate
tbHelp
RouteHelp
tbAbout
tbClose
EnableCloseButton
StatusBar
PageScroller
PageScrollerTracking
StatusSegment
StatusText
OpenProgressBar
StatusProgress
CloseProgressBar
BusyProgressBar
Rulers
RulersMeasure
AutoDelete
PreviewWithScrollers
PaperView
Scale
PreviewScale
VpeScale
ScalePercent
MinScale
MinScalePercent
MaxScale
MaxScalePercent
ScaleMode
ZoomPreview
ZoomIn
ZoomOut
SetPreviewPosition
DefineKey
SendKey
GUITheme
GUILanguage
SetResourceString
hWndPreview
PreviewWindow
ControlVersion
VpeVersion
Edition
Printing Functions
SetupPrinter
PrintOptions
PrintPosMode
SetPrintOffset
PrintOffsetX
PrintOffsetY
PrintScale
PrintDoc
IsPrinting
Device Control Properties
DevEnum
GetDevEntry
Device
DevOrientation
DevPaperFormat
DevPaperWidth
DevPaperHeight
DevScalePercent
DevPrintQuality
DevYResolution
DevColor
DevDuplex
DevTTOption
DevEnumPaperBins
GetDevPaperBinName
GetDevPaperBinID
DevPaperBin
DevPrinterOffsetX
DevPrinterOffsetY
DevPrintableWidth
DevPrintableHeight
DevPhysPageWidth
DevPhysPageHeight
DevCopies
DevCollate
DevFromPage
DevToPage
DevToFile
DevFileName
DevJobName
DevSendData
WritePrinterSetup
ReadPrinterSetup
Layout Functions
UnitTransformation
EngineRenderMode
PageBreak
AutoBreakMode
PageCount
CurrentPage
PageFormat
PageWidth
PageHeight
PageOrientation
PaperBin
StoreSet
UseSet
RemoveSet
nLeft, nTop, nRight, nBottom
nWidth, nHeight
VFREE
nFree
nLeftMargin, nTopMargin, nRightMargin, nBottomMargin
SetDefOutRect
SetOutRect
StorePos
RestorePos
Rotation
Viewable
Printable
ExportNonPrintableObjects
Streamable
Shadowed
ClearPage
InsertPage
RemovePage
InsertAtBottomZOrder
DeleteObject
LastInsertedObject
FirstObject
Rendering
ComputeSingleLineChars
nRenderWidth, nRenderHeight
RenderPrint
RenderPrintBox
RenderWrite
RenderWriteBox
FontAscent
FontDescent
GetCharacterHeight
FontInternalLeading
FontExternalLeading
RenderPicture
RenderPictureStream
RenderPictureResID
RenderPictureResName
RenderPictureDIB
RenderRTF
RenderBoxRTF
RenderRTFFile
RenderBoxRTFFile
RenderRTFStream
RenderBoxRTFStream
RenderFormField
Drawing Functions
SetPen
NoPen
PenSize
PenStyle
PenColor
Line
VpeLine
PolyLine
AddPolyPoint
TVPEPolyLine.AddPoint
BkgMode
BkgColor
BkgGradientStartColor
BkgGradientEndColor
BkgGradientTriColor
BkgGradientMiddleColorPosition
BkgGradientMiddleColor
BkgGradientRotation
BkgGradientPrint
BkgGradientPrintSolidColor
TransparentMode
HatchStyle
HatchColor
CornerRadius
Box
Polygon
AddPolygonPoint
TVPEPolygon.AddPoint
Ellipse
Pie
Text Functions
SetFont
SelectFont
FontName
FontSize
SetFontSubstitution
PurgeFontSubstitution
CharSet
SetFontAttr
TextAlignment
TextBold
TextUnderline
TextUnderlined
TextItalic
TextStrikeOut
TextColor
Write
VpeWrite
WriteBox
Print
VpePrint
PrintBox
EmbeddedFlagParser
DefineHeader
DefineFooter
CharPlacement
Text Block Object
CreateTextBlock
CreateTextBlockRTF
Delete
HasText
Width
Height
GetRangeHeight
LineCount
WriteTextBlock
RenderTextBlock
Reset
Picture Functions
PictureCacheSize
PictureCacheUsed
GetPictureTypes
PictureType
PictureCache
GetPicturePageCount
PicturePage
PictureEmbedInDoc
PictureKeepAspect
PictureBestFit
SetPictureDefaultDPI
PictureX2YResolution
PictureDrawExact
PictureScale2Gray
PictureScale2GrayFloat
Picture
PictureStream
PictureResID
PictureResName
PictureDIB
Barcode Functions (1D)
SetBarcodeParms
BarcodeMainTextParms
BarcodeAddTextParms
BarcodeAlignment
BarcodeAutoChecksum
BarcodeThinBar
BarcodeThickBar
Barcode
Barcode Functions (2D)
Bar2DAlignment
DataMatrixEncodingFormat
DataMatrixEccType
DataMatrixRows
DataMatrixColumns
DataMatrixMirror
DataMatrixBorder
DataMatrix
RenderDataMatrix
QRCodeVersion
QRCodeEccLevel
QRCodeMode
QRCodeBorder
QRCode
RenderQRCode
MaxiCode
RenderMaxiCode
MaxiCodeEx
RenderMaxiCodeEx
PDF417ErrorLevel
PDF417Rows
PDF417Columns
PDF417
RenderPDF417
AztecFlags
AztecControl
AztecMenu
AztecMultipleSymbols
AztecID
Aztec
RenderAztec
E-Mail Functions
Sending Mail on 64-Bit Windows
IsMAPIInstalled
MAPIType
MailSender
AddMailReceiver
ClearMailReceivers
AddMailAttachment
MailAutoAttachDocType
ClearMailAttachments
MailSubject
MailText
MailWithDialog
MailDoc
RTF Functions
WriteRTF
WriteBoxRTF
WriteRTFFile
WriteBoxRTFFile
WriteRTFStream
WriteBoxRTFStream
SetRTFFont
SetRTFColor
Build-In Paragraph Settings
FirstIndent
LeftIndent
RightIndent
SpaceBefore
SpaceAfter
SpaceBetween
DefaultTabSize
SetTab
ClearTab
ClearAllTabs
ResetParagraph
Build-In Paragraph Settings: RTF Auto Page Break
KeepLines
KeepNextParagraph
ParagraphControl
Clickable Objects
EnableClickEvents
ObjectID
ClickedObject
UDO - User Defined Objects
CreateUDO
UDOPicture
UDOlParam
UDODC
UDOGraphics
UDOIsPrinting
UDOIsExporting
UDODpiX
UDODpiY
nUDOLeft, nUDOTop, nUDORight, nUDOBottom
Picture Export Functions
JpegExportOptions
TiffExportOptions
BmpExportOptions
PnmExportOptions
GifExportOptions
PictureExportColorDepth
PictureExportDither
PictureExportPage
PictureExportPageStream
PictureExport
PictureExportStream
Memory Streams (ActiveX / VCL)
CreateMemoryStream (ActiveX / VCL)
Close (ActiveX / VCL)
Read (ActiveX / VCL)
Write (ActiveX / VCL)
Size (ActiveX / VCL)
IsEof (ActiveX / VCL)
State (ActiveX / VCL)
Position (ActiveX / VCL)
Seek (ActiveX / VCL)
SeekEnd (ActiveX / VCL)
SeekRel (ActiveX / VCL)
Memory Streams
CreateMemoryStream
Close
Read
Write
WriteTo
Length
IsEof
State
Position
Seek (.NET)
Seek (Java, PHP, etc.)
SeekEnd (Java, PHP, etc.)
SeekRel (Java, PHP, etc.)
SetLength (.NET)
Flush (.NET)
CanRead (.NET)
CanSeek (.NET)
CanWrite (.NET)
Charts
The SmartChart Technology
In VPE, Charts internally consist of two basic parts
ChartDataCreate
AddValue
AddLegend
XAxisTitle
YAxisTitle
AddXLabel
AddYLabel
SetColor
SetLineStyle
SetHatchStyle
SetPointType
Minimum
Maximum
AddGap
AddRow
AddColumn
ChartDataAddValue
ChartDataAddLegend
ChartDataSetXAxisTitle
ChartDataSetYAxisTitle
ChartDataAddXLabel
ChartDataAddYLabel
ChartDataSetColor
ChartDataSetLineStyle
ChartDataSetHatchStyle
ChartDataSetPointType
ChartDataSetMinimum
ChartDataSetMaximum
ChartDataAddGap
ChartDataAddRow
ChartDataAddColumn
ChartTitle
ChartTitleFontName
ChartTitleFontSizeFactor
ChartSubTitle
ChartSubTitleFontSizeFactor
ChartFootNote
ChartFootNoteFontName
ChartFootNoteFontSizeFactor
ChartAxesFontName
ChartAxisTitleFontSizeFactor
ChartLegendFontName
ChartLegendFontSizeFactor
ChartLineWidthFactor
ChartBarWidthFactor
ChartRow
ChartGridBkgColor
ChartGridBkgMode
ChartGridType
ChartGridColor
ChartXGridStep
ChartYGridStep
SetChartYAutoGridStep
ChartLegendPosition
ChartLegendBorderStat
ChartXLabelState
ChartPieLegendWithPercent
ChartPieLabelType
ChartXLabelFontSizeFactor
ChartXLabelStep
ChartXLabelAngle
ChartXLabelStartValue
ChartYLabelState
ChartYLabelFontSizeFactor
ChartLabelsFontName
ChartYLabelStep
ChartYLabelDivisor
ChartGridRotation
ChartYAxisAngle
ChartXAxisAngle
Chart
FormFields
FormField
CharCount
DividerPenSize
DividerPenColor
AltDividerNPosition
AltDividerPenSize
AltDividerPenColor
BottomLinePenSize
BottomLinePenColor
DividerStyle
AltDividerStyle
FormFieldFlags
Template Functions
LoadTemplate
LoadTemplateAuthKey
DumpTemplate
DumpTemplatePage
UseTemplateMargins
UseTemplateSettings
Template Object
ObjectHandle
Master
ClearFields
GetFieldIsNull
SetFieldToNull
GetFieldNullValueText
SetFieldNullValueText
GetFieldAsString
SetFieldAsString
GetFieldAsInteger
SetFieldAsInteger
GetFieldAsNumber
SetFieldAsNumber
GetFieldAsBoolean
SetFieldAsBoolean
DateTimeIsUTC
SetFieldAsDateTime
GetFieldAsOleDateTime
SetFieldAsOleDateTime
GetFieldAsNetDateTime
SetFieldAsNetDateTime
GetFieldAsJavaDateTime
SetFieldAsJavaDateTime
ClearFields
DataSourceCount
DataSourceObject
FindFieldObject
PageCount
PageObject
FindVpeObject
DataSource Object
ObjectHandle
Prefix
FileName
Description
FieldCount
FieldObject
Field Object
ObjectHandle
IsNull
SetNull
NullValueText
AsString
AsInteger
AsNumber
AsBoolean
SetAsDateTime
AsOleDateTime
AsNetDateTime
AsJavaDateTime
Name
Description
DataSourceObject
Template Page Object
ObjectHandle
PageWidth
PageHeight
Orientation
PaperBin
nLeftMargin, nTopMargin, nRightMargin, nBottomMargin
VpeObjectCount
VpeObject
VPE Object
ObjectHandle
Kind
Name
Text
ResolvedText
nLeft, nTop, nRight, nBottom
PictureFileName
TemplateObject
InsertedVpeObjectCount
InsertedVpeObject
InsertedVpeObjectPageNo
NextObject
Interactive Objects
FormFieldControl
Checkbox
RadioButtonGroup
RadioButton
CheckmarkColor
DocContainsControls
ControlsModified
Interaction
SetFocusToFirstControl
SetFocusControlByName
SetFocusControl
GetFocusControl
FindControl
ControlEnabled
ControlTabIndex
ControlGroupObject
ControlFieldObject
ControlTplVpeObject
ControlAsString
ControlAsInteger
PDF Export
PDFVersion
Author
Title
Subject
Keywords
Creator
EmbedAllFonts
DocExportPictureResolution
DocExportPictureQuality
FastWebView
UseTempFiles
SubsetAllFonts
SetFontControl
ResetFontControl
Encryption
EncryptionKeyLength
UserPassword
OwnerPassword
Protection
SetBookmarkDestination
BookmarkStyle
BookmarkColor
AddBookmark
PDFALevel
AddColorProfile
ExtIntDA
HTML Export
HtmlScale
HtmlWordSpacing
HtmlRtfLineSpacing
HtmlCopyImages
HtmlPageBorders
HtmlPageSeparators
XML Export
XMLPictureExport
ODT Export
OdtTextWidthScale
OdtTextPtSizeScale
OdtLineHeight
OdtAutoTextboxHeight
OdtPositionProtect
DLL vs ActiveX / VCL