// 2000/05/12 - Jakob Kruse // // VPE3X.PKG Virtual Print Engine 3.x for Visual DataFlex // ========= // // The DLL-Interface for the "Virtual Print Engine" version 3.x // // To be "use"d by the calling applications. // // ========================================================================= // Always call VpeLicense with the two serial strings as parameters when // you use a licensed copy of VPE. // // Remember to set _VPEDLL_ to the name of the VPE version you have. // // Please note that several DLL calls and many constants have changed since // VPE 2.x. // // If you need to use a VPE function that needs a parameter of type RECT // (you don't) you must use the type defined in DAC package file DFTYPES.DLL. // ========================================================================= // // 07/02/2002 - Peter van Mil // // Compatibility with StarZen's VPE4VDF classes. // // When VPE_EDITION is defined, External_Functions aren't defined again. // // 25/01/2004 - Peter van Mil // // VPE version 3.50 uses VPE?3235.DLL in stead VPE?32.DLL #IFDEF IS$WEBAPP use WebAppBase.pkg // standard windows classes use dferror.pkg // default error handler #ELSE use DfAllent // Everything (to get hold of external functions) #ENDIF #IFDEF FORCE_VPE_2 use VPE.pkg // Virtual Print Engine 2.2 for Visual DataFlex #ELSE // Valid values for _VPEDLL_ are: // Version 3.1:---------------- // VPES32.DLL (for standard) // VPEX32.DLL (for enhanced) // VPEP32.DLL (for professional) // VPEE32.DLL (for enterprise) // Version 3.5:---------------- // VPES3235.DLL (for standard) // VPEX3235.DLL (for enhanced) // VPEP3235.DLL (for professional) // VPEE3235.DLL (for enterprise) // Version 3.6: Added by AKE // VPEP3236.DLL #REPLACE _VPEDLL_ VPEP3236.DLL // Let everybody know which VPE version we use DEFINE VPE_VERSION_3 Use VPE3X.CFG External_Function VpeMoveWindow "MoveWindow" User32.DLL dword hwnd integer x integer y integer width integer height integer repaint returns integer External_Function VpeOemToCharA "OemToCharA" User32.DLL Pointer hpszOem Pointer hpszWindow Returns Integer // Management functions #IFDEF VPE_EDITION // Defined in StarZen's VPE4VDF classes. #ELSE External_Function VpeOpenDoc "VpeOpenDoc" _VPEDLL_ handle hwnd string title dword flags returns dword External_Function VpeOpenDocFile "VpeOpenDocFile" _VPEDLL_ handle hwnd string file_name string title dword flags returns dword External_Function VpeLicense "VpeLicense" _VPEDLL_ dword hdoc string scode1 string scode2 returns integer External_Function VpeGetLastError "VpeGetLastError" _VPEDLL_ dword hdoc returns dword External_Function VpeCloseDoc "VpeCloseDoc" _VPEDLL_ dword hdoc returns integer External_Function VpePreviewDoc "VpePreviewDoc" _VPEDLL_ dword hdoc pointer recstruct integer show_hide returns integer External_Function VpePreviewDocSP "VpePreviewDocSP" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 integer show_hide returns integer External_Function VpeCenterPreview "VpeCenterPreview" _VPEDLL_ dword hdoc integer width integer height handle parent_window returns integer External_Function VpeSetPreviewCtrl "VpeSetPreviewCtrl" _VPEDLL_ dword hdoc integer setting returns integer External_Function VpeClosePreview "VpeClosePreview" _VPEDLL_ dword hdoc returns integer External_Function VpeIsPreviewVisible "VpeIsPreviewVisible" _VPEDLL_ dword hdoc returns integer External_Function VpeGetVisualPage "VpeGetVisualPage" _VPEDLL_ dword hdoc returns integer External_Function VpeGotoVisualPage "VpeGotoVisualPage" _VPEDLL_ dword hdoc integer page returns integer External_Function VpeDispatchAllMessages "VpeDispatchAllMessages" _VPEDLL_ dword hdoc returns integer // Warning: uses UINT parameter and return value //External_Function VpeMapMessage "VpeMapMessage" _VPEDLL_ dword hdoc UINT message returns UINT External_Function VpeRefreshDoc "VpeRefreshDoc" _VPEDLL_ dword hdoc returns integer External_Function VpeWriteDoc "VpeWriteDoc" _VPEDLL_ dword hdoc string file_name returns integer External_Function VpeReadDoc "VpeReadDoc" _VPEDLL_ dword hdoc string file_name returns integer External_Function VpeSetDocFileReadOnly "VpeSetDocFileReadOnly" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeEnableAutoDelete "VpeEnableAutoDelete" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeEnablePrintSetupDialog "VpeEnablePrintSetupDialog" _VPEDLL_ dword hdoc integer enabled returns integer External_Function VpeEnableMailButton "VpeEnableMailButton" _VPEDLL_ dword hdoc integer enabled returns integer External_Function VpeEnableCloseButton "VpeEnableCloseButton" _VPEDLL_ dword hdoc integer enabled returns integer External_Function VpeEnableMouseScaling "VpeEnableMouseScaling" _VPEDLL_ dword hdoc integer enabled returns integer External_Function VpeEnableHelpRouting "VpeEnableHelpRouting" _VPEDLL_ dword hdoc integer enabled returns integer External_Function VpeSetGridMode "VpeSetGridMode" _VPEDLL_ dword hdoc integer in_foreground returns integer External_Function VpeSetGridVisible "VpeSetGridVisible" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetPreviewWithScrollers "VpeSetPreviewWithScrollers" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetPaperView "VpeSetPaperView" _VPEDLL_ dword hdoc integer on_off returns integer External_Function VpeSetPageScrollerTracking "VpeSetPageScrollerTracking" _VPEDLL_ dword hdoc integer on_off returns integer External_Function VpeWriteStatusbar "VpeWriteStatusbar" _VPEDLL_ dword hdoc string text returns integer External_Function VpeOpenProgressBar "VpeOpenProgressBar" _VPEDLL_ dword hdoc returns integer External_Function VpeSetProgressBar "VpeSetProgressBar" _VPEDLL_ dword hdoc integer percent returns integer External_Function VpeCloseProgressBar "VpeCloseProgressBar" _VPEDLL_ dword hdoc returns integer #IFSAME _VPEDLL_ VPEX32.DLL VPEP32.DLL VPEE32.DLL VPEX3235.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeSetBusyProgressBar "VpeSetBusyProgressBar" _VPEDLL_ dword hdoc integer visible returns integer #ENDIF External_Function VpeSetRulersMeasure "VpeSetRulersMeasure" _VPEDLL_ dword hdoc integer rulers_measure returns integer //External_Function VpeSetScale "VpeSetScale" _VPEDLL_ dword hdoc DOUBLE scale returns integer //External_Function VpeGetScale "VpeGetScale" _VPEDLL_ dword hdoc returns DOUBLE External_Function VpeSetScalePercent "VpeSetScalePercent" _VPEDLL_ dword hdoc integer scale returns integer External_Function VpeGetScalePercent "VpeGetScalePercent" _VPEDLL_ dword hdoc returns integer //External_Function VpeSetMinScale "VpeSetMinScale" _VPEDLL_ dword hdoc DOUBLE min_scale returns integer External_Function VpeSetMinScalePercent "VpeSetMinScalePercent" _VPEDLL_ dword hdoc integer min_scale_percent returns integer //External_Function VpeSetMaxScale "VpeSetMaxScale" _VPEDLL_ dword hdoc DOUBLE max_scale returns integer External_Function VpeSetMaxScalePercent "VpeSetMaxScalePercent" _VPEDLL_ dword hdoc integer max_scale_percent returns integer //External_Function VpeSetScaleStep "VpeSetScaleStep" _VPEDLL_ dword hdoc DOUBLE scale_step returns integer External_Function VpeSetScaleStepPercent "VpeSetScaleStepPercent" _VPEDLL_ dword hdoc integer scale_step_percent returns integer External_Function VpeDefineKey "VpeDefineKey" _VPEDLL_ dword hdoc integer func integer key_code integer add_key_code1 integer add_key_code2 returns integer External_Function VpeSendKey "VpeSendKey" _VPEDLL_ dword hdoc integer vkey returns integer External_Function VpeSetGUILanguage "VpeSetGUILanguage" _VPEDLL_ dword hdoc integer language returns integer External_Function VpeGetWindowHandle "VpeGetWindowHandle" _VPEDLL_ dword hdoc returns handle External_Function VpeWindowHandle "VpeWindowHandle" _VPEDLL_ dword hdoc returns handle External_Function VpeGetVersion "VpeGetVersion" _VPEDLL_ returns dword External_Function VpeGetEdition "VpeGetEdition" _VPEDLL_ returns integer External_Function VpeRegisterCtl3D "VpeRegisterCtl3D" _VPEDLL_ handle hinstance returns dword External_Function VpeUnregisterCtl3D "VpeUnregisterCtl3D" _VPEDLL_ handle hinstance returns integer // Printing Functions External_Function VpeSetupPrinter "VpeSetupPrinter" _VPEDLL_ dword hdoc string file_name integer dialog_control returns integer External_Function VpeSetPrintOptions "VpeSetPrintOptions" _VPEDLL_ dword hdoc dword flags returns integer External_Function VpeSetPrintPosMode "VpeSetPrintPosMode" _VPEDLL_ dword hdoc integer mode returns integer External_Function VpeSetPrintOffset "VpeSetPrintOffset" _VPEDLL_ dword hdoc integer offset_x integer offset_y returns integer External_Function VpeSetPrintOffsetX "VpeSetPrintOffsetX" _VPEDLL_ dword hdoc integer offset_x returns integer External_Function VpeGetPrintOffsetX "VpeGetPrintOffsetX" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPrintOffsetY "VpeSetPrintOffsetY" _VPEDLL_ dword hdoc integer offset_y returns integer External_Function VpeGetPrintOffsetY "VpeGetPrintOffsetY" _VPEDLL_ dword hdoc returns integer External_Function VpePrintDoc "VpePrintDoc" _VPEDLL_ dword hdoc integer with_setup returns integer External_Function VpeIsPrinting "VpeIsPrinting" _VPEDLL_ dword hdoc returns integer // Device Control Properties External_Function VpeDevEnum "VpeDevEnum" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevEntry "VpeGetDevEntry" _VPEDLL_ dword hdoc integer index pointer device integer size returns integer External_Function VpeSetDevice "VpeSetDevice" _VPEDLL_ dword hdoc string device returns integer External_Function VpeGetDevice "VpeGetDevice" _VPEDLL_ dword hdoc pointer device integer size returns integer External_Function VpeSetDevOrientation "VpeSetDevOrientation" _VPEDLL_ dword hdoc integer orientation returns integer External_Function VpeGetDevOrientation "VpeGetDevOrientation" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevPaperFormat "VpeSetDevPaperFormat" _VPEDLL_ dword hdoc integer iformat returns integer External_Function VpeGetDevPaperFormat "VpeGetDevPaperFormat" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevPaperWidth "VpeSetDevPaperWidth" _VPEDLL_ dword hdoc integer width returns integer External_Function VpeGetDevPaperWidth "VpeGetDevPaperWidth" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevPaperHeight "VpeSetDevPaperHeight" _VPEDLL_ dword hdoc integer height returns integer External_Function VpeGetDevPaperHeight "VpeGetDevPaperHeight" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevScalePercent "VpeSetDevScalePercent" _VPEDLL_ dword hdoc integer scale returns integer External_Function VpeGetDevScalePercent "VpeGetDevScalePercent" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevPrintQuality "VpeSetDevPrintQuality" _VPEDLL_ dword hdoc integer quality returns integer External_Function VpeGetDevPrintQuality "VpeGetDevPrintQuality" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevYResolution "VpeSetDevYResolution" _VPEDLL_ dword hdoc integer yres returns integer External_Function VpeGetDevYResolution "VpeGetDevYResolution" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevColor "VpeSetDevColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeGetDevColor "VpeGetDevColor" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevDuplex "VpeSetDevDuplex" _VPEDLL_ dword hdoc integer duplex returns integer External_Function VpeGetDevDuplex "VpeGetDevDuplex" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevTTOption "VpeSetDevTTOption" _VPEDLL_ dword hdoc integer option returns integer External_Function VpeGetDevTTOption "VpeGetDevTTOption" _VPEDLL_ dword hdoc returns integer External_Function VpeDevEnumPaperBins "VpeDevEnumPaperBins" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevPaperBinName "VpeGetDevPaperBinName" _VPEDLL_ dword hdoc integer index pointer bin_name_address integer size returns integer External_Function VpeGetDevPaperBinID "VpeGetDevPaperBinID" _VPEDLL_ dword hdoc integer index returns integer External_Function VpeSetDevPaperBin "VpeSetDevPaperBin" _VPEDLL_ dword hdoc integer bin_id returns integer External_Function VpeGetDevPaperBin "VpeGetDevPaperBin" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevPrinterOffsetX "VpeGetDevPrinterOffsetX" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevPrinterOffsetY "VpeGetDevPrinterOffsetY" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevPhysPageWidth "VpeGetDevPhysPageWidth" _VPEDLL_ dword hdoc returns integer External_Function VpeGetDevPhysPageHeight "VpeGetDevPhysPageHeight" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevCopies "VpeSetDevCopies" _VPEDLL_ dword hdoc integer copies returns integer External_Function VpeGetDevCopies "VpeGetDevCopies" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevCollate "VpeSetDevCollate" _VPEDLL_ dword hdoc integer collate returns integer External_Function VpeGetDevCollate "VpeGetDevCollate" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevFromPage "VpeSetDevFromPage" _VPEDLL_ dword hdoc integer from_page returns integer External_Function VpeGetDevFromPage "VpeGetDevFromPage" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevToPage "VpeSetDevToPage" _VPEDLL_ dword hdoc integer to_page returns integer External_Function VpeGetDevToPage "VpeGetDevToPage" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevToFile "VpeSetDevToFile" _VPEDLL_ dword hdoc integer to_file returns integer External_Function VpeGetDevToFile "VpeGetDevToFile" _VPEDLL_ dword hdoc returns integer External_Function VpeSetDevFileName "VpeSetDevFileName" _VPEDLL_ dword hdoc string file_name returns integer External_Function VpeGetDevFileName "VpeGetDevFileName" _VPEDLL_ dword hdoc pointer file_name_address integer size returns integer External_Function VpeSetDevJobName "VpeSetDevJobName" _VPEDLL_ dword hdoc string job_name returns integer External_Function VpeGetDevJobName "VpeGetDevJobName" _VPEDLL_ dword hdoc pointer job_name_address integer size returns integer External_Function VpeDevSendData "VpeDevSendData" _VPEDLL_ dword hdoc string data dword size returns integer External_Function VpeWritePrinterSetup "VpeWritePrinterSetup" _VPEDLL_ dword hdoc string file_name returns integer External_Function VpeReadPrinterSetup "VpeReadPrinterSetup" _VPEDLL_ dword hdoc string file_name returns integer // Layout functions External_Function VpePageBreak "VpePageBreak" _VPEDLL_ dword hdoc returns integer External_Function VpeSetAutoBreak "VpeSetAutoBreak" _VPEDLL_ dword hdoc integer mode returns integer External_Function VpeGetPageCount "VpeGetPageCount" _VPEDLL_ dword hdoc returns integer External_Function VpeGetCurrentPage "VpeGetCurrentPage" _VPEDLL_ dword hdoc returns integer External_Function VpeGotoPage "VpeGotoPage" _VPEDLL_ dword hdoc integer page returns integer External_Function VpeSetPageFormat "VpeSetPageFormat" _VPEDLL_ dword hdoc integer page_format returns integer External_Function VpeSetPageWidth "VpeSetPageWidth" _VPEDLL_ dword hdoc integer page_width returns integer External_Function VpeGetPageWidth "VpeGetPageWidth" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPageHeight "VpeSetPageHeight" _VPEDLL_ dword hdoc integer page_height returns integer External_Function VpeGetPageHeight "VpeGetPageHeight" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPageOrientation "VpeSetPageOrientation" _VPEDLL_ dword hdoc integer orientation returns integer External_Function VpeGetPageOrientation "VpeGetPageOrientation" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPaperBin "VpeSetPaperBin" _VPEDLL_ dword hdoc integer bin returns integer External_Function VpeGetPaperBin "VpeGetPaperBin" _VPEDLL_ dword hdoc returns integer External_Function VpeStoreSet "VpeStoreSet" _VPEDLL_ dword hdoc integer id returns integer External_Function VpeUseSet "VpeUseSet" _VPEDLL_ dword hdoc integer id returns integer External_Function VpeRemoveSet "VpeRemoveSet" _VPEDLL_ dword hdoc integer id returns integer External_Function VpeGet "VpeGet" _VPEDLL_ dword hdoc integer what returns integer External_Function VpeSet "VpeSet" _VPEDLL_ dword hdoc integer what integer value returns integer External_Function VpeSetDefOutRect "VpeSetDefOutRect" _VPEDLL_ dword hdoc pointer rect returns integer External_Function VpeSetDefOutRectSP "VpeSetDefOutRectSP" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 returns integer External_Function VpeSetOutRect "VpeSetOutRect" _VPEDLL_ dword hdoc pointer rect returns integer External_Function VpeSetOutRectSP "VpeSetOutRectSP" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 returns integer External_Function VpeGetOutRect "VpeGetOutRect" _VPEDLL_ dword hdoc pointer rect returns integer External_Function VpeSetPosRect "VpeSetPosRect" _VPEDLL_ dword hdoc pointer rect returns integer External_Function VpeGetPosRect "VpeGetPosRect" _VPEDLL_ dword hdoc pointer rect returns integer External_Function VpeStorePos "VpeStorePos" _VPEDLL_ dword hdoc returns integer External_Function VpeRestorePos "VpeRestorePos" _VPEDLL_ dword hdoc returns integer External_Function VpeSetRotation "VpeSetRotation" _VPEDLL_ dword hdoc integer angle returns integer #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeSetViewable "VpeSetViewable" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetPrintable "VpeSetPrintable" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetStreamable "VpeSetStreamable" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetShadowed "VpeSetShadowed" _VPEDLL_ dword hdoc integer yes_no returns integer #ENDIF // Rendering functions External_Function VpeRenderPrint "VpeRenderPrint" _VPEDLL_ dword hdoc integer x integer y string s returns integer External_Function VpeRenderPrintBox "VpeRenderPrintBox" _VPEDLL_ dword hdoc integer x integer y string s returns integer External_Function VpeRenderWrite "VpeRenderWrite" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string s returns integer External_Function VpeRenderWriteBox "VpeRenderWriteBox" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string s returns integer External_Function VpeRenderPicture "VpeRenderPicture" _VPEDLL_ dword hdoc integer width integer height string file_name integer flags returns integer //External_Function VpeRenderPictureResID "VpeRenderPictureResID" _VPEDLL_ dword hdoc integer width integer height handle hinstance UINT res_id returns integer External_Function VpeRenderPictureResName "VpeRenderPictureResName" _VPEDLL_ dword hdoc integer width integer height handle hinstance string res_name returns integer External_Function VpeRenderPictureDIB "VpeRenderPictureDIB" _VPEDLL_ dword hdoc integer width integer height handle hdib returns integer #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeRenderRTF "VpeRenderRTF" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string s returns integer External_Function VpeRenderBoxRTF "VpeRenderBoxRTF" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string s returns integer External_Function VpeRenderRTFFile "VpeRenderRTFFile" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string file_name returns integer External_Function VpeRenderBoxRTFFile "VpeRenderBoxRTFFile" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string file_name returns integer #ENDIF // Drawing functions External_Function VpeSetPen "VpeSetPen" _VPEDLL_ dword hdoc integer pen_size integer pen_style integer pen_color returns integer External_Function VpeNoPen "VpeNoPen" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPenSize "VpeSetPenSize" _VPEDLL_ dword hdoc integer pen_size returns integer External_Function VpePenSize "VpePenSize" _VPEDLL_ dword hdoc integer pen_size returns integer External_Function VpeGetPenSize "VpeGetPenSize" _VPEDLL_ dword hdoc returns integer External_Function VpeSetPenStyle "VpeSetPenStyle" _VPEDLL_ dword hdoc integer pen_style returns integer External_Function VpePenStyle "VpePenStyle" _VPEDLL_ dword hdoc integer pen_style returns integer External_Function VpeSetPenColor "VpeSetPenColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpePenColor "VpePenColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeLine "VpeLine" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 returns integer External_Function VpePolyLine "VpePolyLine" _VPEDLL_ dword hdoc dword point_array integer size returns dword External_Function VpeAddPolyPoint "VpeAddPolyPoint" _VPEDLL_ dword hdoc dword hpolyline integer x integer y returns integer External_Function VpeSetBkgMode "VpeSetBkgMode" _VPEDLL_ dword hdoc integer mode returns integer External_Function VpeSetBkgColor "VpeSetBkgColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeSetBkgGradientStartColor "VpeSetBkgGradientStartColor" _VPEDLL_ dword hdoc integer color_start returns integer External_Function VpeSetBkgGradientEndColor "VpeSetBkgGradientEndColor" _VPEDLL_ dword hdoc integer color_end returns integer External_Function VpeSetBkgGradientRotation "VpeSetBkgGradientRotation" _VPEDLL_ dword hdoc integer angle returns integer External_Function VpeSetBkgGradientPrint "VpeSetBkgGradientPrint" _VPEDLL_ dword hdoc integer mode returns integer External_Function VpeSetBkgGradientPrintSolidColor "VpeSetBkgGradientPrintSolidColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeSetTransparentMode "VpeSetTransparentMode" _VPEDLL_ dword hdoc integer on_off returns integer External_Function VpeSetHatchStyle "VpeSetHatchStyle" _VPEDLL_ dword hdoc integer style returns integer External_Function VpeSetHatchColor "VpeSetHatchColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeBox "VpeBox" _VPEDLL_ dword hdoc integer x integer y integer x2 integer x3 returns integer External_Function VpePolygon "VpePolygon" _VPEDLL_ dword hdoc dword point_array integer size returns dword External_Function VpeAddPolygonPoint "VpeAddPolygonPoint" _VPEDLL_ dword hdoc dword hpolygon integer x integer y returns integer External_Function VpeEllipse "VpeEllipse" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 returns integer External_Function VpePie "VpePie" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 integer begin_angle integer end_angle returns integer // Text functions External_Function VpeSetFont "VpeSetFont" _VPEDLL_ dword hdoc string font_name integer size returns integer External_Function VpeSelectFont "VpeSelectFont" _VPEDLL_ dword hdoc string font_name integer size returns integer External_Function VpeSetFontName "VpeSetFontName" _VPEDLL_ dword hdoc string font_name returns integer External_Function VpeSetFontSize "VpeSetFontSize" _VPEDLL_ dword hdoc integer size returns integer External_Function VpeSetCharset "VpeSetCharset" _VPEDLL_ dword hdoc dword charset returns integer External_Function VpeSetFontAttr "VpeSetFontAttr" _VPEDLL_ dword hdoc integer alignment integer bold integer underlined integer italic integer strikeout returns integer External_Function VpeSetTextAlignment "VpeSetTextAlignment" _VPEDLL_ dword hdoc integer alignment returns integer External_Function VpeSetAlign "VpeSetAlign" _VPEDLL_ dword hdoc integer alignment returns integer External_Function VpeSetBold "VpeSetBold" _VPEDLL_ dword hdoc integer bold returns integer External_Function VpeSetUnderlined "VpeSetUnderlined" _VPEDLL_ dword hdoc integer underlined returns integer External_Function VpeSetItalic "VpeSetItalic" _VPEDLL_ dword hdoc integer italic returns integer External_Function VpeSetStrikeOut "VpeSetStrikeOut" _VPEDLL_ dword hdoc integer strikeout returns integer External_Function VpeSetTextColor "VpeSetTextColor" _VPEDLL_ dword hdoc integer color returns integer External_Function VpeWrite "VpeWrite" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string text returns integer External_Function VpeWriteBox "VpeWriteBox" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string text returns integer External_Function VpePrint "VpePrint" _VPEDLL_ dword hdoc integer x integer y string text returns integer External_Function VpePrintBox "VpePrintBox" _VPEDLL_ dword hdoc integer x integer y string text returns integer External_Function VpeDefineHeader "VpeDefineHeader" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string text returns integer External_Function VpeDefineFooter "VpeDefineFooter" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string text returns integer External_Function VpeSetCharPlacement "VpeSetCharPlacement" _VPEDLL_ dword hdoc integer distance returns integer // Picture functions External_Function VpeSetKeepPictureAspect "VpeSetKeepPictureAspect" _VPEDLL_ dword hdoc integer on_off returns integer //OBSOLETE: External_Function VpeKeepBitmapAspect "VpeKeepBitmapAspect" _VPEDLL_ dword hdoc integer on_off returns integer External_Function VpeSetDefaultPictureDPI "VpeSetDefaultPictureDPI" _VPEDLL_ dword hdoc integer dpix integer dpiy returns integer //OBSOLETE: External_Function VpeDefaultBitmapDPI "VpeDefaultBitmapDPI" _VPEDLL_ dword hdoc integer dpix integer dpiy returns integer External_Function VpeSetPictureCacheSize "VpeSetPictureCacheSize" _VPEDLL_ dword hdoc dword size returns integer External_Function VpeGetPictureCacheSize "VpeGetPictureCacheSize" _VPEDLL_ dword hdoc returns dword External_Function VpeGetPictureCacheUsed "VpeGetPictureCacheUsed" _VPEDLL_ dword hdoc returns dword External_Function VpeGetPictureTypes "VpeGetPictureTypes" _VPEDLL_ dword hdoc integer with_filters pointer s_address integer size returns integer External_Function VpeSetPictureType "VpeSetPictureType" _VPEDLL_ dword hdoc dword type returns integer External_Function VpePicture "VpePicture" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string file_name integer flags returns integer External_Function VpePictureResID "VpePictureResID" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 handle hinstance integer res_id integer flags returns integer External_Function VpePictureResName "VpePictureResName" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 handle hinstance string res_name integer flags returns integer External_Function VpePictureDIB "VpePictureDIB" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 handle hdib integer flags returns integer #IFSAME _VPEDLL_ VPEX32.DLL VPEP32.DLL VPEE32.DLL VPEX3235.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeGetPicturePageCount "VpeGetPicturePageCount" _VPEDLL_ dword hdoc string file_name returns dword External_Function VpeSetPicturePage "VpeSetPicturePage" _VPEDLL_ dword hdoc dword page_no returns integer External_Function VpeGetPicturePage "VpeGetPicturePage" _VPEDLL_ dword hdoc returns dword #ENDIF // Barcode functions #IFSAME _VPEDLL_ VPEX32.DLL VPEP32.DLL VPEE32.DLL VPEX3235.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeSetBarcodeParms "VpeSetBarcodeParms" _VPEDLL_ dword hdoc integer top_bottom integer add_top_bottom returns integer External_Function VpeSetBarcodeAlignment "VpeSetBarcodeAlignment" _VPEDLL_ dword hdoc integer alignment returns integer External_Function VpeBarcode "VpeBarcode" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 integer code_type string code string add_code returns integer #ENDIF // Email functions External_Function VpeIsMAPIInstalled "VpeIsMAPIInstalled" _VPEDLL_ dword hdoc returns integer External_Function VpeSetMailSender "VpeSetMailSender" _VPEDLL_ dword hdoc string sender returns integer External_Function VpeAddMailReceiver "VpeAddMailReceiver" _VPEDLL_ dword hdoc string receiver dword recip_class returns integer External_Function VpeClearMailReceivers "VpeClearMailReceivers" _VPEDLL_ dword hdoc returns integer External_Function VpeAddMailAttachment "VpeAddMailAttachment" _VPEDLL_ dword hdoc string path string file_name returns integer External_Function VpeClearMailAttachments "VpeClearMailAttachments" _VPEDLL_ dword hdoc returns integer External_Function VpeSetMailSubject "VpeSetMailSubject" _VPEDLL_ dword hdoc string subject returns integer External_Function VpeSetMailText "VpeSetMailText" _VPEDLL_ dword hdoc string text returns integer External_Function VpeSetMailWithDialog "VpeSetMailWithDialog" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeMailDoc "VpeMailDoc" _VPEDLL_ dword hdoc returns integer // RTF functions #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeWriteRTF "VpeWriteRTF" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string rtf_text returns integer External_Function VpeWriteBoxRTF "VpeWriteBoxRTF" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string rtf_text returns integer External_Function VpeWriteRTFFile "VpeWriteRTFFile" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string file_name returns integer External_Function VpeWriteBoxRTFFile "VpeWriteBoxRTFFile" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 string file_name returns integer External_Function VpeSetRTFFont "VpeSetRTFFont" _VPEDLL_ dword hdoc integer id string font_name returns integer External_Function VpeSetRTFColor "VpeSetRTFColor" _VPEDLL_ dword hdoc integer id dword color returns integer External_Function VpeSetFirstIndent "VpeSetFirstIndent" _VPEDLL_ dword hdoc integer indent returns integer External_Function VpeSetLeftIndent "VpeSetLeftIndent" _VPEDLL_ dword hdoc integer indent returns integer External_Function VpeSetRightIndent "VpeSetRightIndent" _VPEDLL_ dword hdoc integer indent returns integer External_Function VpeSetSpaceBefore "VpeSetSpaceBefore" _VPEDLL_ dword hdoc integer space returns integer External_Function VpeSetSpaceAfter "VpeSetSpaceAfter" _VPEDLL_ dword hdoc integer space returns integer External_Function VpeSetSpaceBetween "VpeSetSpaceBetween" _VPEDLL_ dword hdoc integer space returns integer External_Function VpeSetDefaultTabSize "VpeSetDefaultTabSize" _VPEDLL_ dword hdoc integer default_tab_size returns integer External_Function VpeSetTab "VpeSetTab" _VPEDLL_ dword hdoc integer tab_position integer reserved returns integer External_Function VpeClearTab "VpeClearTab" _VPEDLL_ dword hdoc integer tab_position returns integer External_Function VpeClearAllTabs "VpeClearAllTabs" _VPEDLL_ dword hdoc returns integer External_Function VpeResetParagraph "VpeResetParagraph" _VPEDLL_ dword hdoc returns integer External_Function VpeSetKeepLines "VpeSetKeepLines" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetKeepNextParagraph "VpeSetKeepNextParagraph" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetParagraphControl "VpeSetParagraphControl" _VPEDLL_ dword hdoc integer yes_no returns integer #ENDIF // Interactive objects #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeEnableClickEvents "VpeEnableClickEvents" _VPEDLL_ dword hdoc integer yes_no returns integer External_Function VpeSetObjectID "VpeSetObjectID" _VPEDLL_ dword hdoc dword id returns integer External_Function VpeGetObjectID "VpeGetObjectID" _VPEDLL_ dword hdoc returns dword #ENDIF // UDO #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeCreateUDO "VpeCreateUDO" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 dword lparam returns integer External_Function VpeGetUDOlParam "VpeGetUDOlParam" _VPEDLL_ dword hdoc returns dword External_Function VpeGetUDODC "VpeGetUDODC" _VPEDLL_ dword hdoc returns handle External_Function VpeGetUDODrawRect "VpeGetUDODrawRect" _VPEDLL_ dword hdoc pointer rect_address returns integer #ENDIF // Picture export functions #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeSetPictureExportOptions "VpeSetPictureExportOptions" _VPEDLL_ dword hdoc dword options returns integer External_Function VpeSetPictureExportColorDepth "VpeSetPictureExportColorDepth" _VPEDLL_ dword hdoc integer depth returns integer External_Function VpeSetPictureExportDither "VpeSetPictureExportDither" _VPEDLL_ dword hdoc integer dither returns integer External_Function VpePictureExportPage "VpePictureExportPage" _VPEDLL_ dword hdoc string file_name integer page_no returns integer External_Function VpePictureExport "VpePictureExport" _VPEDLL_ dword hdoc string file_name integer page_no integer x integer y integer x2 integer y2 returns integer #ENDIF // Chart functions #IFSAME _VPEDLL_ VPEP32.DLL VPEE32.DLL VPEP3235.DLL VPEE3235.DLL VPEP3236.DLL External_Function VpeInitCharts "VpeInitCharts" _VPEDLL_ dword hdoc returns integer External_Function VpeChartDataCreate "VpeChartDataCreate" _VPEDLL_ dword hdoc integer columns integer rows returns dword // Value parameter is really a double in the next function External_Function VpeChartDataAddValue "VpeChartDataAddValue" _VPEDLL_ dword hdoc dword hdata integer column dword value returns integer External_Function VpeChartDataAddLegend "VpeChartDataAddLegend" _VPEDLL_ dword hdoc dword hdata string legend returns integer External_Function VpeChartDataSetXAxisTitle "VpeChartDataSetXAxisTitle" _VPEDLL_ dword hdoc dword hdata string x_axis_title returns integer External_Function VpeChartDataSetYAxisTitle "VpeChartDataSetYAxisTitle" _VPEDLL_ dword hdoc dword hdata string y_axis_title returns integer External_Function VpeChartDataAddXLabel "VpeChartDataAddXLabel" _VPEDLL_ dword hdoc dword hdata string xlabel returns integer External_Function VpeChartDataAddYLabel "VpeChartDataAddYLabel" _VPEDLL_ dword hdoc dword hdata string ylabel returns integer External_Function VpeChartDataSetColor "VpeChartDataSetColor" _VPEDLL_ dword hdoc dword hdata integer column dword color returns integer External_Function VpeChartDataSetLineStyle "VpeChartDataSetLineStyle" _VPEDLL_ dword hdoc dword hdata integer column integer pen_style returns integer External_Function VpeChartDataSetHatchStyle "VpeChartDataSetHatchStyle" _VPEDLL_ dword hdoc dword hdata integer column integer style returns integer External_Function VpeChartDataSetPointType "VpeChartDataSetPointType" _VPEDLL_ dword hdoc dword hdata integer column integer pointtype returns integer // Parameter minimum is actually a double in the following function External_Function VpeChartDataSetMinimum "VpeChartDataSetMinimum" _VPEDLL_ dword hdoc dword hdata dword minimum returns integer // Parameter maximum is actually a double in the following function External_Function VpeChartDataSetMaximum "VpeChartDataSetMaximum" _VPEDLL_ dword hdoc dword hdata dword maximum returns integer External_Function VpeChartDataAddGap "VpeChartDataAddGap" _VPEDLL_ dword hdoc dword hdata integer column returns integer External_Function VpeChartDataAddRow "VpeChartDataAddRow" _VPEDLL_ dword hdoc dword hdata returns integer External_Function VpeChartDataAddColumn "VpeChartDataAddColumn" _VPEDLL_ dword hdoc dword hdata returns integer External_Function VpeSetChartTitle "VpeSetChartTitle" _VPEDLL_ dword hdoc string title returns integer External_Function VpeSetChartSubTitle "VpeSetChartSubTitle" _VPEDLL_ dword hdoc string subtitle returns integer External_Function VpeSetChartFootNote "VpeSetChartFootNote" _VPEDLL_ dword hdoc string footnote returns integer External_Function VpeSetChartRow "VpeSetChartRow" _VPEDLL_ dword hdoc integer row returns integer External_Function VpeSetChartGridBkgColor "VpeSetChartGridBkgColor" _VPEDLL_ dword hdoc dword bkgcolor returns integer External_Function VpeSetChartGridBkgMode "VpeSetChartGridBkgMode" _VPEDLL_ dword hdoc integer mode returns integer External_Function VpeSetChartGridType "VpeSetChartGridType" _VPEDLL_ dword hdoc integer gridtype returns integer External_Function VpeSetChartGridColor "VpeSetChartGridColor" _VPEDLL_ dword hdoc dword gridcolor returns integer // Parameter gridstepy is actually a double in the following function External_Function VpeSetChartYGridStep "VpeSetChartYGridStep" _VPEDLL_ dword hdoc dword gridstepy returns integer External_Function VpeSetChartYAutoGridStep "VpeSetChartYAutoGridStep" _VPEDLL_ dword hdoc returns integer External_Function VpeSetChartLegendPosition "VpeSetChartLegendPosition" _VPEDLL_ dword hdoc integer legendpos returns integer External_Function VpeSetChartLegendBorderStat "VpeSetChartLegendBorderStat" _VPEDLL_ dword hdoc integer legendborderstat returns integer External_Function VpeSetChartXLabelState "VpeSetChartXLabelState" _VPEDLL_ dword hdoc integer xlabelstate returns integer External_Function VpeSetChartXLabelAngle "VpeSetChartXLabelAngle" _VPEDLL_ dword hdoc integer xlabelangle returns integer External_Function VpeSetChartXLabelStartValue "VpeSetChartXLabelStartValue" _VPEDLL_ dword hdoc integer xlabelstartvalue returns integer External_Function VpeSetChartYLabelState "VpeSetChartYLabelState" _VPEDLL_ dword hdoc integer ylabelstate returns integer External_Function VpeSetChartYLabelStep "VpeSetChartYLabelStep" _VPEDLL_ dword hdoc integer ylabelstep returns integer // Parameter ylabeldivisor is actually a double in the following function External_Function VpeSetChartYLabelDivisor "VpeSetChartYLabelDivisor" _VPEDLL_ dword hdoc dword ylabeldivisor returns integer External_Function VpeSetChartGridRotation "VpeSetChartGridRotation" _VPEDLL_ dword hdoc integer axisangle returns integer External_Function VpeSetChartYAxisAngle "VpeSetChartYAxisAngle" _VPEDLL_ dword hdoc integer yangle returns integer External_Function VpeSetChartXAxisAngle "VpeSetChartXAxisAngle" _VPEDLL_ dword hdoc integer xangle returns integer External_Function VpeChart "VpeChart" _VPEDLL_ dword hdoc integer x integer y integer x2 integer y2 dword hdata integer chart_type returns integer //PDF-functions External_Function VpeAddBookmark "VpeAddBookmark" _VPEDLL_ dword hdoc integer parent string title returns integer #ENDIF #ENDIF // VPE-constants : ///////////////////////////////////////////////////////// // // Constants for internal use: DEFINE VPE_NULL for $0000 DEFINE VPE_TRUE for 1 DEFINE VPE_FALSE for 0 // VpeOpenDoc - flags : DEFINE VPE_NO_TOOLBAR for 1 DEFINE VPE_NO_PRINTBUTTON for 8 DEFINE VPE_NO_MAILBUTTON for 16 DEFINE VPE_NO_SCALEBTNS for 32 DEFINE VPE_GRIDBUTTON for 64 DEFINE VPE_NO_MOVEBTNS for 128 DEFINE VPE_NO_HELPBUTTON for 256 DEFINE VPE_NO_INFOBUTTON for 512 DEFINE VPE_NO_USER_CLOSE for 1024 DEFINE VPE_NO_STATBAR for 2048 DEFINE VPE_NO_PAGESCROLLER for 4096 DEFINE VPE_NO_STATUSSEG for 8192 DEFINE VPE_NO_RULERS for 16384 DEFINE VPE_EMBEDDED for 32768 DEFINE VPE_DOCFILE_READONLY for 65536 DEFINE VPE_FIXED_MESSAGES for 131072 // VpeGetLastError - return values : Enum_List DEFINE VERR_OK DEFINE VERR_COMMON DEFINE VERR_MEMORY for 100 DEFINE VERR_FILE_OPEN for 200 DEFINE VERR_FILE_DOCVERSION DEFINE VERR_FILE_CREATE DEFINE VERR_FILE_ACCESS DEFINE VERR_FILE_READ DEFINE VERR_FILE_WRITE DEFINE VERR_PIC_IMPORT for 300 DEFINE VERR_PIC_NOLICENSE DEFINE VERR_PIC_DXFCOORD DEFINE VERR_PIC_EXPORT for 350 DEFINE VERR_MOD_GRAPH_IMP for 400 DEFINE VERR_MOD_GRAPH_PROC DEFINE VERR_MOD_BARCODE DEFINE VERR_MOD_CHART DEFINE VERR_MAIL_LOAD_MAPI for 450 DEFINE VERR_MAIL_CREATE DEFINE VERR_MAIL_USER_ABORT DEFINE VERR_MAIL_FAILURE DEFINE VERR_MAIL_LOGON_FAILURE DEFINE VERR_MAIL_DISK_FULL DEFINE VERR_MAIL_INSUFFICIENT_MEMORY DEFINE VERR_MAIL_ACCESS_DENIED DEFINE VERR_MAIL_RESERVED DEFINE VERR_MAIL_TOO_MANY_SESSIONS DEFINE VERR_MAIL_TOO_MANY_FILES DEFINE VERR_MAIL_TOO_MANY_RECIPIENTS DEFINE VERR_MAIL_ATTACHMENT_NOT_FOUND DEFINE VERR_MAIL_ATTACHMENT_OPEN_FAILURE DEFINE VERR_MAIL_ATTACHMENT_WRITE_FAILURE DEFINE VERR_MAIL_UNKNOWN_RECIPIENT DEFINE VERR_MAIL_BAD_RECIPTYPE DEFINE VERR_MAIL_NO_MESSAGES DEFINE VERR_MAIL_INVALID_MESSAGE DEFINE VERR_MAIL_TEXT_TOO_LARGE DEFINE VERR_MAIL_INVALID_SESSION DEFINE VERR_MAIL_TYPE_NOT_SUPPORTED DEFINE VERR_MAIL_AMBIGUOUS_RECIPIENT DEFINE VERR_MAIL_MESSAGE_IN_USE DEFINE VERR_MAIL_NETWORK_FAILURE DEFINE VERR_MAIL_INVALID_EDITFIELDS DEFINE VERR_MAIL_INVALID_RECIPS DEFINE VERR_MAIL_NOT_SUPPORTED DEFINE VERR_RTF_BRACES for 1000 DEFINE VERR_RTF_OVERFLOW DEFINE VERR_RTF_FONTTBL DEFINE VERR_RTF_COLORTBL End_Enum_List // VpePreviewDoc - parameters : DEFINE VPE_SHOW_NORMAL for 1 DEFINE VPE_SHOW_MAXIMIZED for 2 DEFINE VPE_SHOW_HIDE for 3 // VpeSetPreviewCtrl - parameters : DEFINE PREVIEW_STAY for 0 DEFINE PREVIEW_JUMPTOP for 1 #IFDEF VPE_EDITION // Zie StarZen's VDF4VPE #ELSE // VpeDefineKey/VpeDefineKey - parameters : Enum_List DEFINE VKEY_SCROLL_LEFT DEFINE VKEY_SCROLL_PAGE_LEFT DEFINE VKEY_SCROLL_RIGHT DEFINE VKEY_SCROLL_PAGE_RIGHT DEFINE VKEY_SCROLL_UP DEFINE VKEY_SCROLL_PAGE_UP DEFINE VKEY_SCROLL_DOWN DEFINE VKEY_SCROLL_PAGE_DOWN DEFINE VKEY_SCROLL_TOP DEFINE VKEY_SCROLL_BOTTOM DEFINE VKEY_PRINT DEFINE VKEY_MAIL DEFINE VKEY_1_1 DEFINE VKEY_FULL_PAGE DEFINE VKEY_ZOOM_IN DEFINE VKEY_ZOOM_OUT DEFINE VKEY_GRID DEFINE VKEY_PAGE_FIRST DEFINE VKEY_PAGE_LEFT DEFINE VKEY_PAGE_RIGHT DEFINE VKEY_PAGE_LAST DEFINE VKEY_HELP DEFINE VKEY_INFO DEFINE VKEY_CLOSE DEFINE VKEY_GOTO_PAGE End_Enum_List // VpeSetGUILanguage - parameters : Enum_List DEFINE VGUI_LANGUAGE_ENGLISH DEFINE VGUI_LANGUAGE_GERMAN DEFINE VGUI_LANGUAGE_FRENCH DEFINE VGUI_LANGUAGE_DUTCH DEFINE VGUI_LANGUAGE_SPANISH DEFINE VGUI_LANGUAGE_DANISH DEFINE VGUI_LANGUAGE_SWEDISH DEFINE VGUI_LANGUAGE_FINNISH DEFINE VGUI_LANGUAGE_ITALIAN DEFINE VGUI_LANGUAGE_NORWEGIAN End_Enum_List #ENDIF // VpeGetEdition - return values : DEFINE VEDITION_STANDARD for 1000 DEFINE VEDITION_ENHANCED for 2000 DEFINE VEDITION_PROFESSIONAL for 3000 DEFINE VEDITION_ENTERPRISE for 4000 // VpeSetupPrinter - parameters : DEFINE PRINTDLG_NEVER for 0 // never show setup-dialog DEFINE PRINTDLG_ONFAIL for 1 // show setup-dialog if file-read fail DEFINE PRINTDLG_ALWAYS for 2 // show setup-dialog always DEFINE PRINTDLG_FULL for 4 // show full dialog, add this to the other flags! // VpeSetPrintOptions - parameters : DEFINE PRINT_ALL for 0 // print all pages DEFINE PRINT_EVEN for 1 // print only even pages DEFINE PRINT_ODD for 2 // print only oss pages DEFINE PRINT_NOABORTDLG for 4 // no abort/progress dialog // VpeSetPrintPosMode - parameters : DEFINE PRINTPOS_ABSOLUTE for 0 DEFINE PRINTPOS_RELATIVE for 1 // VpeSetDevOrientation - parameters, and // VpeSetPageOrientation - parameters, and // VpeGetPageOrientation - return values : DEFINE VORIENTATION_PORTRAIT for 1 DEFINE VORIENTATION_LANDSCAPE for 2 // Formerly VPE_LANDSCAPE DEFINE VPE_LANDSCAPE for 8192 // Just so we are able to compile // VpeSetDevPaperFormat - parameters, and // VpeGetDevPaperFormat - return values, and // VpeSetPageFormat - parameters : DEFINE VPAPER_A4 for -1 // Formerly: DIN_A_4 DEFINE VPAPER_LETTER for -2 // Formerly: US_LETTER DEFINE VPAPER_LEGAL for -3 DEFINE VPAPER_CSHEET for -4 DEFINE VPAPER_DSHEET for -5 DEFINE VPAPER_ESHEET for -6 DEFINE VPAPER_LETTERSMALL for -7 DEFINE VPAPER_TABLOID for -8 DEFINE VPAPER_LEDGER for -9 DEFINE VPAPER_STATEMENT for -10 DEFINE VPAPER_EXECUTIVE for -11 DEFINE VPAPER_A3 for -12 DEFINE VPAPER_A4SMALL for -13 DEFINE VPAPER_A5 for -14 DEFINE VPAPER_B4 for -15 DEFINE VPAPER_B5 for -16 DEFINE VPAPER_FOLIO for -17 DEFINE VPAPER_QUARTO for -18 DEFINE VPAPER_10X14 for -19 DEFINE VPAPER_11X17 for -20 DEFINE VPAPER_NOTE for -21 DEFINE VPAPER_ENV_9 for -22 DEFINE VPAPER_ENV_10 for -23 DEFINE VPAPER_ENV_11 for -24 DEFINE VPAPER_ENV_12 for -25 DEFINE VPAPER_ENV_14 for -26 DEFINE VPAPER_ENV_DL for -27 DEFINE VPAPER_ENV_C5 for -28 DEFINE VPAPER_ENV_C3 for -29 DEFINE VPAPER_ENV_C4 for -30 DEFINE VPAPER_ENV_C6 for -31 DEFINE VPAPER_ENV_C65 for -32 DEFINE VPAPER_ENV_B4 for -33 DEFINE VPAPER_ENV_B5 for -34 DEFINE VPAPER_ENV_B6 for -35 DEFINE VPAPER_ENV_ITALY for -36 DEFINE VPAPER_ENV_MONARCH for -37 DEFINE VPAPER_ENV_PERSONAL for -38 DEFINE VPAPER_FANFOLD_US for -39 DEFINE VPAPER_FANFOLD_STD_GERMAN for -40 DEFINE VPAPER_FANFOLD_LGL_GERMAN for -41 // VpeSetDevPrintQuality - parameters, and // VpeGetDevPrintQuality - return values : DEFINE VRES_DRAFT for -1 DEFINE VRES_LOW for -2 DEFINE VRES_MEDIUM for -3 DEFINE VRES_HIGH for -4 // VpeSetDevColor - parameters, and // VpeGetDevColor - return values : DEFINE VCOLOR_MONOCHROME for 1 DEFINE VCOLOR_COLOR for 2 // VpeSetDevDuplex - parameters, and // VpeGetDevDuplex - return values : DEFINE VDUP_SIMPLEX for 1 DEFINE VDUP_VERTICAL for 2 DEFINE VDUP_HORIZONTAL for 3 // VpeSetDevTTOption - parameters, and // VpeGetDevTTOption - return values : DEFINE VTT_BITMAP for 1 DEFINE VTT_DOWNLOAD for 2 DEFINE VTT_SUBDEV for 3 // VpeGetDevPaperBinID - return values, and // VpeSetDevPaperBin - parameters, and // VpeGetDevPaperBin - return values, and // VpeSetPaperBin - parameters, and // VpeGetPaperBin - return values : DEFINE VBIN_UNTOUCHED for -1 // not for the ...Dev... functions DEFINE VBIN_UPPER for 1 DEFINE VBIN_ONLYONE for 1 // yes, also 1 DEFINE VBIN_LOWER for 2 DEFINE VBIN_MIDDLE for 3 DEFINE VBIN_MANUAL for 4 DEFINE VBIN_ENVELOPE for 5 DEFINE VBIN_ENVMANUAL for 6 DEFINE VBIN_AUTO for 7 DEFINE VBIN_TRACTOR for 8 DEFINE VBIN_SMALLFMT for 9 DEFINE VBIN_LARGEFMT for 10 DEFINE VBIN_LARGECAPACITY for 11 DEFINE VBIN_CASSETTE for 14 // VpeSetAutoBreak - parameters : DEFINE AUTO_BREAK_ON for 0 // auto break DEFINE AUTO_BREAK_OFF for 1 // limited positioning, rendering DEFINE AUTO_BREAK_NO_LIMITS for 2 // none of above DEFINE AUTO_BREAK_FULL for 3 // Positioning codes, and // VpeGet - parameters : DEFINE VFREE for -1 // not vpeget DEFINE VLEFT for -2 DEFINE VRIGHT for -3 DEFINE VLEFTMARGIN for -4 DEFINE VRIGHTMARGIN for -5 DEFINE VTOP for -6 DEFINE VBOTTOM for -7 DEFINE VTOPMARGIN for -8 DEFINE VBOTTOMMARGIN for -9 DEFINE VWIDTH for -100 DEFINE VHEIGHT for -101 DEFINE VRENDERWIDTH for -102 DEFINE VRENDERHEIGHT for -103 DEFINE VUDO_LEFT for -104 DEFINE VUDO_RIGHT for -105 DEFINE VUDO_TOP for -106 DEFINE VUDO_BOTTOM for -107 DEFINE VUDO_WIDTH for -108 DEFINE VUDO_HEIGHT for -109 // VpeRender... - return values : DEFINE RENDER_NO_BREAK for 0 DEFINE RENDER_BREAK for 1 DEFINE RENDER_SKIP_BREAK for 2 // VpeSetPen - parameters, and // VpeSetPenStyle - parameters, and // VpePenStyle - parameters, and // VpeChartDataSetLineStyle - parameters : DEFINE PS_SOLID for 0 DEFINE PS_DASH for 1 DEFINE PS_DOT for 2 DEFINE PS_DASHDOT for 3 DEFINE PS_DASHDOTDOT for 4 DEFINE PS_NULL for 5 //DEFINE PS_INSIDEFRAME for 6 // VpeSetBkgMode - parameters, and // VpeSetChartGridBkgMode - parameters : DEFINE VBKG_SOLID for 0 DEFINE VBKG_TRANSPARENT for 1 DEFINE VBKG_GRD_LINE for 2 DEFINE VBKG_GRD_RECT for 3 DEFINE VBKG_GRD_ELLIPSE for 4 // VpeSetBkgGradientPrint - parameters : DEFINE VGRD_PRINT_AUTO for 0 DEFINE VGRD_PRINT_GRADIENT for 1 DEFINE VGRD_PRINT_SOLID for 2 // VpeSetHatchStyle - parameters, and // VpeChartDataSetHatchStyle - parameters : DEFINE HS_NONE for -1 DEFINE HS_HORIZONTAL for 0 DEFINE HS_VERTICAL for 1 DEFINE HS_FDIAGONAL for 2 DEFINE HS_BDIAGONAL for 3 DEFINE HS_CROSS for 4 DEFINE HS_DIAGCROSS for 5 // VpeSetCharset - parameters : DEFINE ANSI_CHARSET for 0 DEFINE DEFAULT_CHARSET for 1 DEFINE SYMBOL_CHARSET for 2 DEFINE SHIFTJIS_CHARSET for 128 DEFINE HANGEUL_CHARSET for 129 DEFINE GB2312_CHARSET for 134 DEFINE CHINESEBIG5_CHARSET for 136 DEFINE OEM_CHARSET for 255 DEFINE JOHAB_CHARSET for 130 // the following are only for win9x DEFINE HEBREW_CHARSET for 177 DEFINE ARABIC_CHARSET for 178 DEFINE GREEK_CHARSET for 161 DEFINE TURKISH_CHARSET for 162 DEFINE THAI_CHARSET for 222 DEFINE EASTEUROPE_CHARSET for 238 DEFINE RUSSIAN_CHARSET for 204 DEFINE MAC_CHARSET for 77 DEFINE BALTIC_CHARSET for 186 // VpeSetFontAttr - parameters, and // VpeSetTextAlignment - parameters, and // VpeSetAlign - parameters : DEFINE ALIGN_LEFT for 0 DEFINE ALIGN_RIGHT for 1 DEFINE ALIGN_CENTER for 2 DEFINE ALIGN_JUSTIFIED for 3 //DEFINE ALIGN_PRINT for 4 // internal, do not use ! DEFINE ALIGN_JUSTIFIED_AB for 5 DEFINE ALIGN_LEFT_CUT for 7 // VpeSetPictureType - parameters : DEFINE PIC_TYPE_AUTO for 255 DEFINE PIC_TYPE_BMP for 0 DEFINE PIC_TYPE_WMF for 5 DEFINE PIC_TYPE_EMF for 6 DEFINE PIC_TYPE_DXF for 7 DEFINE PIC_TYPE_TIFF for 64 DEFINE PIC_TYPE_GIF for 65 DEFINE PIC_TYPE_PCX for 66 DEFINE PIC_TYPE_FLT for 67 DEFINE PIC_TYPE_JPEG for 68 DEFINE PIC_TYPE_PNG for 69 // VpePicture - parameters, and // VpePictureResID - parameters, and // VpePictureResName - parameters, and // VpePictureDIB - parameters : DEFINE PIC_MERGE for 1 DEFINE PIC_KEEPIMAGE for 2 // Formerly: VPE_PIC_KEEPIMAGE DEFINE PIC_DISCARD_DIB_DRAW for 4 DEFINE PIC_KEEP_DIB_PAGE for 8 DEFINE PIC_BESTFIT for 16 DEFINE PIC_IN_FILE for 32 DEFINE PIC_ALLOWLZW for 64 DEFINE PIC_X2YRESOLUTION for 128 DEFINE PIC_DXF_BW for 256 DEFINE PIC_SCALE2GRAY for 512 DEFINE PIC_SCALE2GRAY_FLOAT for 1024 DEFINE PIC_EXACT for 32768 // VpeSetBarcodeParms - parameters : DEFINE BCP_BOTTOM for 0 DEFINE BCP_TOP for 1 DEFINE BCP_HIDE for 2 // VpeBarcode - parameters : DEFINE BCT_EAN13 for 1 DEFINE BCT_EAN8 for 2 DEFINE BCT_UPCA for 3 DEFINE BCT_CODABAR for 5 DEFINE BCT_CODE39 for 6 DEFINE BCT_2OF5 for 7 DEFINE BCT_INTERLEAVED2OF5 for 8 DEFINE BCT_UPCE for 9 DEFINE BCT_EAN13_2 for 10 DEFINE BCT_EAN13_5 for 11 DEFINE BCT_EAN8_2 for 12 DEFINE BCT_EAN8_5 for 13 DEFINE BCT_UPCA_2 for 14 DEFINE BCT_UPCA_5 for 15 DEFINE BCT_UPCE_2 for 16 DEFINE BCT_UPCE_5 for 17 DEFINE BCT_EAN128A for 18 DEFINE BCT_EAN128B for 19 DEFINE BCT_EAN128C for 20 DEFINE BCT_CODE93 for 21 DEFINE BCT_POSTNET for 22 // VpeIsMAPIInstalled - return values : DEFINE VMAPI_NOT_INSTALLED for 0 DEFINE VMAPI_INSTALLED for 1 DEFINE VMAPI_UNSURE for 2 // VpeAddMailReceiver - parameters : DEFINE VMAIL_ORIG for 0 DEFINE VMAIL_TO for 1 DEFINE VMAIL_CC for 2 DEFINE VMAIL_BCC for 3 // Colors : // ??? on page 239 // VpeSetPictureExportOptions - parameters : DEFINE PICEXP_WRITE_COMPRESSED for 2 DEFINE PICEXP_TIFF_NOCOMP for 32 DEFINE PICEXP_TIFF_LZW for 64 DEFINE PICEXP_TIFF_CCITTRLE for 96 DEFINE PICEXP_TIFF_CCITTFAX3 for 128 DEFINE PICEXP_TIFF_CCITTFAX4 for 160 DEFINE PICEXP_TIFF_PACKBITS for 192 DEFINE PICEXP_TIFF_APPEND for 2097152 DEFINE PICEXP_ALLOWLZW for 1024 DEFINE PICEXP_JPEG_HIQUALITY for 61440 DEFINE PICEXP_JPEG_GOODQUALITY for 36864 DEFINE PICEXP_JPEG_MIDQUALITY for 12288 DEFINE PICEXP_JPEG_LOQUALITY for 4096 DEFINE PICEXP_PNG_INTERLACED for 65536 // VpeSetPictureExportColorDepth - parameters : DEFINE PICEXP_COLOR_MONO for 1 DEFINE PICEXP_COLOR_16 for 4 DEFINE PICEXP_COLOR_256 for 8 DEFINE PICEXP_COLOR_HI for 16 DEFINE PICEXP_COLOR_TRUE for 24 // VpeSetPictureExportDither - parameters : DEFINE PICEXP_DITHER_NONE for 0 DEFINE PICEXP_DITHER_MONO for 1 DEFINE PICEXP_DITHER_16 for 2 DEFINE PICEXP_DITHER_256 for 3 // VpeChartDataSetPointType - parameters : DEFINE VCHART_SYMBOL_NONE for -1 DEFINE VCHART_SYMBOL_SQUARE for 0 DEFINE VCHART_SYMBOL_TRIANGLE for 1 DEFINE VCHART_SYMBOL_CIRCLE for 2 DEFINE VCHART_SYMBOL_CROSS for 3 DEFINE VCHART_SYMBOL_X for 4 DEFINE VCHART_SYMBOL_POINT for 5 // VpeSetChartGridType - parameters : DEFINE VCHART_GRID_NONE for -1 DEFINE VCHART_GRID_BOTH_AXIS for 0 DEFINE VCHART_GRID_X_AXIS for 1 DEFINE VCHART_GRID_Y_AXIS for 2 // VpeSetChartLegendPosition - parameters : DEFINE VCHART_LEGENDPOS_NONE for -1 DEFINE VCHART_LEGENDPOS_RIGHT for 0 DEFINE VCHART_LEGENDPOS_RIGHT_TOP for 1 DEFINE VCHART_LEGENDPOS_RIGHT_BOTTOM for 2 DEFINE VCHART_LEGENDPOS_LEFT for 3 DEFINE VCHART_LEGENDPOS_LEFT_TOP for 4 DEFINE VCHART_LEGENDPOS_LEFT_BOTTOM for 5 DEFINE VCHART_LEGENDPOS_TOP for 6 DEFINE VCHART_LEGENDPOS_BOTTOM for 7 // VpeSetChartXLabelState - parameters, and // VpeSetChartYLabelState - parameters : DEFINE VCHART_LABEL_NONE for -1 DEFINE VCHART_LABEL_USER for 0 DEFINE VCHART_LABEL_AUTO for 1 // VpeChart - parameters : DEFINE VCHART_POINT for 0 DEFINE VCHART_LINE for 1 DEFINE VCHART_BAR for 2 DEFINE VCHART_STACKED_BAR_ABSOLUTE for 3 DEFINE VCHART_STACKED_BAR_PERCENT for 4 DEFINE VCHART_3D_BAR for 5 DEFINE VCHART_3D_STACKED_BAR_ABSOLUTE for 6 DEFINE VCHART_3D_STACKED_BAR_PERCENT for 7 DEFINE VCHART_PIE for 8 DEFINE VCHART_3D_PIE for 9 DEFINE VCHART_AREA_ABSOLUTE for 10 DEFINE VCHART_AREA_PERCENT for 11 integer Vpe$ReturnGrb# Function VPE_OemToChar Global String OemStr Returns String String CharStr Integer OemAdress CharAdress Append OemStr (Character(0)) Move (Repeat(Character(0), (Length(OemStr)))) To CharStr GetAddress Of OemStr To OemAdress GetAddress Of CharStr To CharAdress Move (VpeOemToCharA(OemAdress, CharAdress)) To Vpe$ReturnGrb# Function_Return (CString(CharStr)) End_Function // This function may be used in conjunction with the Win2Pdf product // from Dane Prairie Systems: "http://www.daneprairie.com" Function Vpe_PrintDocToPdf global string lsVpeDocFile string lsPdfFileName string lsTitle returns integer integer lhDoc lhGarbage Get VPE_OemToChar lsTitle To lsTitle Move (VpeOpenDocFile(0,lsVpeDocFile,"",DFFALSE)) to lhDoc Move (VpeLicense(lhDoc,VPE_SERIAL_CODE1,VPE_SERIAL_CODE2)) to lhGarbage Move (VpeSetDevice(lhDoc,"Win2PDF")) to lhGarbage // Use printer called "Win2PDF" Set_Registry_Root to HKEY_CURRENT_USER "Software" // This assigns a file name to the PDF file about to be generated Set_Foreign_Profile_String "VB and VBA Program Settings\Dane Prairie Systems" "Win2PDF" "PDFFileName" to lsPdfFileName Set_Foreign_Profile_String "VB and VBA Program Settings\Dane Prairie Systems" "Win2PDF" "PDFFileNameWas" to lsPdfFileName // Restore registry pointer: Set_Registry_Root to HKEY_LOCAL_MACHINE "SoftWare" Move (VpePrintDoc(lhDoc,DFFALSE)) to lhGarbage // DFFALSE=>No dialog move (VpeCloseDoc(lhDoc)) to windowindex function_return lhGarbage End_Function #ENDIF