PHP Report on Server

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PHP Report on Server

Postby jeramosm » Sun Oct 19, 2014 6:37 am

I want to create a report on server side, to generate a PDF file to show to the user, using Windows, Apache Server and PHP. Actually I'm using VPEP 7R2, the code I'm trying to use is the following:

<?php

//------ Variables ------
$my_pdf = "C:\\XAMPP\htdocs\\sier\\vpe\\MyReport.pdf";

//------ Create a new COM Object of Crytal Reports 10 ------
$ObjectFactory= new COM("VpeControl.VpeControl.70");

//------ Open your rpt file ------
$Report = new TVpeControl;
$Report->OpenDoc();
$Report->Print(1.5, 1, "Hello World!");
$Report->Picture(1.5, 2, $Report->nFree, $Report->nFree, "example.jpg");
$Report->WriteDoc($my_pdf);
$Report->CloseDoc();
?>

It sends and error in COM call, does anyone have an idea why it doesn't works.
jeramosm
 
Posts: 7
Joined: Sat Feb 28, 2009 8:30 pm
Location: Guadalajara, Mexico

Re: PHP Report on Server

Postby IDEAL Software Support » Mon Oct 20, 2014 1:43 pm

In order to use COM / ActiveX objects under PHP for Windows, you need to add the following two lines to your php.ini file:

Code: Select all
[COM_DOT_NET]
extension=php_com_dotnet.dll


Your source code is also incorrect, here is a working sample:

Code: Select all
<?php
// To enable the use of COM objects with PHP, insert the following two lines into php.ini:
// [COM_DOT_NET]
// extension=php_com_dotnet.dll

// The GUID of the VPE COM object. This changes with each new version of VPE (not for Service Releases).
// It can be found by searching for "VpeControl.VpeControl.<version>" in the registry.
// Using the GUID is much faster than using the ProgID (i.e. "VpeControl.VpeControl.<version>").
define("VpeGUID", "{E4809925-0E64-4CF6-B7EE-229DE4963BE0}");

// ------ Load the type library of VPE, which defines constants like VFREE, etc. ------
// BUG BUG BUG! Unfortunately PHP has a bug: This works only for the very first call of a PHP script!
//            Even setting com.autoregister_typelib = true in the php.ini file does not solve the problem.
//            This bug is open since 2009, see: https://bugs.php.net/bug.php?id=48585
// com_load_typelib(VpeGUID) or die("Unable to instantiate VPE");

// Due to the bug in com_load_typelib(), we need to manually define the constants exported by the VPE COM object:
define("VFREE", -2147483549);

// ------ Create a new instance of the VPE ActiveX object ------
$Report = new COM(VpeGUID) or die("Unable to instantiate VPE");

// Create the report
$my_pdf = "d:\\tmp\\MyVpePhpReport.pdf";
$Report->OpenDoc();
$Report->Print(1.5, 1, "Hello World!");
$Report->Picture(1.5, 2, VFREE, VFREE, "example.jpg");
$Report->WriteDoc($my_pdf);
$Report->CloseDoc();
$Report = null      // free the COM object
?>
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: PHP Report on Server

Postby IDEAL Software Support » Mon Oct 20, 2014 1:45 pm

Fortunately we have created an in-house tool, which can generate constant definitions for any programming language. It took us about 15 minutes to enhance it for PHP, and here are the definitions for v7.0 Professional Edition, to workaround the PHP typelib bug:

Code: Select all
// ========================================================================
// VPE Enum Symbols                                                       
// ----------------                                                       
//                                                                         
// Generated by mkconst v1.0                                               
// DO NOT MODIFY!                                                         
// ========================================================================

define("VEDITION_COMMUNITY", 500);
define("VEDITION_STANDARD", 1000);
define("VEDITION_ENHANCED", 2000);
define("VEDITION_PROFESSIONAL", 3000);
define("VEDITION_ENTERPRISE", 4000);
define("VEDITION_INTERACTIVE", 5000);
define("VPE_NO_TOOLBAR", 1);
define("VPE_NO_PRINTBUTTON", 8);
define("VPE_NO_MAILBUTTON", 16);
define("VPE_NO_SCALEBTNS", 32);
define("VPE_GRIDBUTTON", 64);
define("VPE_NO_MOVEBTNS", 128);
define("VPE_NO_HELPBUTTON", 256);
define("VPE_NO_INFOBUTTON", 512);
define("VPE_NO_USER_CLOSE", 1024);
define("VPE_NO_STATBAR", 2048);
define("VPE_NO_PAGESCROLLER", 4096);
define("VPE_NO_STATUSSEG", 8192);
define("VPE_NO_RULERS", 16384);
define("VPE_EMBEDDED", 32768);
define("VPE_DOCFILE_READONLY", 65536);
define("VPE_FIXED_MESSAGES", 131072);
define("VPE_NO_OPEN_BUTTON", 262144);
define("VPE_NO_SAVE_BUTTON", 524288);
define("VPE_SHOW_NORMAL", 1);
define("VPE_SHOW_MAXIMIZED", 2);
define("VPE_SHOW_HIDE", 3);
define("VBKG_SOLID", 0);
define("VBKG_TRANSPARENT", 1);
define("VBKG_GRD_LINE", 2);
define("VBKG_GRD_RECT", 3);
define("VBKG_GRD_ELLIPSE", 4);
define("VGRD_PRINT_AUTO", 0);
define("VGRD_PRINT_GRADIENT", 1);
define("VGRD_PRINT_SOLID", 2);
define("PS_SOLID", 0);
define("PS_DASH", 1);
define("PS_DOT", 2);
define("PS_DASHDOT", 3);
define("PS_DASHDOTDOT", 4);
define("HS_NONE", -1);
define("HS_HORIZONTAL", 0);
define("HS_VERTICAL", 1);
define("HS_FDIAGONAL", 2);
define("HS_BDIAGONAL", 3);
define("HS_CROSS", 4);
define("HS_DIAGCROSS", 5);
define("ALIGN_LEFT", 0);
define("ALIGN_RIGHT", 1);
define("ALIGN_CENTER", 2);
define("ALIGN_JUSTIFIED", 3);
define("ALIGN_JUSTIFIED_AB", 5);
define("AUTO_BREAK_ON", 0);
define("AUTO_BREAK_OFF", 1);
define("AUTO_BREAK_NO_LIMITS", 2);
define("AUTO_BREAK_FULL", 3);
define("PIC_TYPE_AUTO", 255);
define("PIC_TYPE_BMP", 0);
define("PIC_TYPE_WMF", 5);
define("PIC_TYPE_EMF", 6);
define("PIC_TYPE_TIFF", 64);
define("PIC_TYPE_GIF", 65);
define("PIC_TYPE_PCX", 66);
define("PIC_TYPE_JPEG", 68);
define("PIC_TYPE_PNG", 69);
define("PIC_TYPE_ICO", 70);
define("PIC_TYPE_JNG", 71);
define("PIC_TYPE_KOALA", 72);
define("PIC_TYPE_IFF", 73);
define("PIC_TYPE_MNG", 74);
define("PIC_TYPE_PBM", 75);
define("PIC_TYPE_PBM_RAW", 76);
define("PIC_TYPE_PCD", 77);
define("PIC_TYPE_PGM", 78);
define("PIC_TYPE_PGM_RAW", 79);
define("PIC_TYPE_PPM", 80);
define("PIC_TYPE_PPM_RAW", 81);
define("PIC_TYPE_RAS", 82);
define("PIC_TYPE_TARGA", 83);
define("PIC_TYPE_WBMP", 84);
define("PIC_TYPE_PSD", 85);
define("PIC_TYPE_CUT", 86);
define("PIC_TYPE_XBM", 87);
define("PIC_TYPE_XPM", 88);
define("PIC_TYPE_DDS", 89);
define("PIC_TYPE_HDR", 90);
define("PIC_TYPE_FAX_G3", 91);
define("PIC_TYPE_SGI", 92);
define("PRINTDLG_NEVER", 0);
define("PRINTDLG_ONFAIL", 1);
define("PRINTDLG_ALWAYS", 2);
define("PRINTDLG_FULL", 4);
define("PRINT_ALL", 0);
define("PRINT_EVEN", 1);
define("PRINT_ODD", 2);
define("PRINT_NOABORTDLG", 4);
define("PRINT_NO_AUTO_PAGE_DIMS", 16);
define("PRINTPOS_ABSOLUTE", 0);
define("PRINTPOS_RELATIVE", 1);
define("VPE_DESTROYWINDOW", 3330);
define("VPE_PRINT", 3331);
define("VPE_AUTOPAGEBREAK", 3332);
define("VPE_PRINT_NEWPAGE", 3333);
define("VPE_PRINT_DEVDATA", 3334);
define("VPE_HELP", 3335);
define("VPE_CLOSEWINDOW", 3336);
define("VPE_OBJECTCLICKED", 3337);
define("VPE_UDO_PAINT", 3338);
define("VPE_BEFORE_MAIL", 3339);
define("VPE_AFTER_MAIL", 3340);
define("VPE_CANCLOSE", 3341);
define("VPE_CTRL_AFTER_ENTER", 3342);
define("VPE_CTRL_CAN_EXIT", 3343);
define("VPE_CTRL_AFTER_EXIT", 3344);
define("VPE_CTRL_AFTER_CHANGE", 3345);
define("VPE_FIELD_AFTER_CHANGE", 3346);
define("VPE_BEFORE_OPEN_FILE", 3347);
define("VPE_AFTER_OPEN_FILE", 3348);
define("VPE_BEFORE_SAVE_FILE", 3349);
define("VPE_AFTER_SAVE_FILE", 3350);
define("PRINT_MSG_ABORT", 0);
define("PRINT_MSG_START", 1);
define("PRINT_MSG_END", 2);
define("PRINT_MSG_SETUPABORT", 3);
define("PRINT_MSG_SETUPSTART", 4);
define("PRINT_MSG_SETUPEND", 5);
define("PRINT_ACTION_OK", 0);
define("PRINT_ACTION_ABORT", 1);
define("PRINT_ACTION_CHANGE", 1);
define("BCP_BOTTOM", 0);
define("BCP_TOP", 1);
define("BCP_HIDE", 2);
define("BCP_DEFAULT", 3);
define("BCT_EAN13", 1);
define("BCT_EAN8", 2);
define("BCT_UPCA", 3);
define("BCT_CODABAR", 5);
define("BCT_CODE39", 6);
define("BCT_2OF5", 7);
define("BCT_INTERLEAVED2OF5", 8);
define("BCT_UPCE", 9);
define("BCT_EAN13_2", 10);
define("BCT_EAN13_5", 11);
define("BCT_EAN8_2", 12);
define("BCT_EAN8_5", 13);
define("BCT_UPCA_2", 14);
define("BCT_UPCA_5", 15);
define("BCT_UPCE_2", 16);
define("BCT_UPCE_5", 17);
define("BCT_CODE93", 21);
define("BCT_POSTNET", 22);
define("BCT_CODE128", 26);
define("BCT_EAN128", 27);
define("BCT_EAN2", 28);
define("BCT_EAN5", 29);
define("BCT_CODE39EXT", 30);
define("BCT_CODE93EXT", 31);
define("BCT_RM4SCC", 32);
define("BCT_MSI", 33);
define("BCT_ISBN", 34);
define("BCT_ISBN_5", 35);
define("BCT_IDENTCODE", 36);
define("BCT_LEITCODE", 37);
define("BCT_PZN", 38);
define("BCT_CODE11", 39);
define("BCT_2OF5MATRIX", 40);
define("BCT_TELEPENA", 41);
define("BCT_INTELLIGENT_MAIL", 42);
define("VFREE", -2147483549);
define("VLEFT", -2147483550);
define("VRIGHT", -2147483551);
define("VLEFTMARGIN", -2147483552);
define("VRIGHTMARGIN", -2147483553);
define("VTOP", -2147483554);
define("VBOTTOM", -2147483555);
define("VTOPMARGIN", -2147483556);
define("VBOTTOMMARGIN", -2147483557);
define("VMINVFLAG", -2147483549);
define("VWIDTH", -100);
define("VHEIGHT", -101);
define("VRENDERWIDTH", -102);
define("VRENDERHEIGHT", -103);
define("VUDO_LEFT", -104);
define("VUDO_RIGHT", -105);
define("VUDO_TOP", -106);
define("VUDO_BOTTOM", -107);
define("VUDO_WIDTH", -108);
define("VUDO_HEIGHT", -109);
define("VASCENT", -110);
define("RENDER_NO_BREAK", 0);
define("RENDER_BREAK", 1);
define("RENDER_SKIP_BREAK", 2);
define("VMAPI_NOT_INSTALLED", 0);
define("VMAPI_INSTALLED", 1);
define("VMAPI_UNSURE", 2);
define("VERR_OK", 0);
define("VERR_COMMON", 1);
define("VERR_CANCELLED", 2);
define("VERR_MEMORY", 100);
define("VERR_FILE_OPEN", 200);
define("VERR_FILE_DOCVERSION", 201);
define("VERR_FILE_CREATE", 202);
define("VERR_FILE_ACCESS", 203);
define("VERR_FILE_READ", 204);
define("VERR_FILE_WRITE", 205);
define("VERR_PIC_IMPORT", 300);
define("VERR_PIC_DXFCOORD", 302);
define("VERR_PIC_EXPORT", 350);
define("VERR_MOD_GRAPH_IMP", 400);
define("VERR_MOD_GRAPH_PROC", 401);
define("VERR_MOD_BARCODE", 402);
define("VERR_MOD_CHART", 403);
define("VERR_MOD_ZLIB", 404);
define("VERR_MOD_VPDF", 405);
define("VERR_MOD_VBAR2D", 406);
define("VERR_MAIL_LOAD_MAPI", 450);
define("VERR_MAIL_CREATE", 451);
define("VERR_MAIL_USER_ABORT", 452);
define("VERR_MAIL_FAILURE", 453);
define("VERR_MAIL_LOGON_FAILURE", 454);
define("VERR_MAIL_DISK_FULL", 455);
define("VERR_MAIL_INSUFFICIENT_MEMORY", 456);
define("VERR_MAIL_ACCESS_DENIED", 457);
define("VERR_MAIL_RESERVED", 458);
define("VERR_MAIL_TOO_MANY_SESSIONS", 459);
define("VERR_MAIL_TOO_MANY_FILES", 460);
define("VERR_MAIL_TOO_MANY_RECIPIENTS", 461);
define("VERR_MAIL_ATTACHMENT_NOT_FOUND", 462);
define("VERR_MAIL_ATTACHMENT_OPEN_FAILURE", 463);
define("VERR_MAIL_ATTACHMENT_WRITE_FAILURE", 464);
define("VERR_MAIL_UNKNOWN_RECIPIENT", 465);
define("VERR_MAIL_BAD_RECIPTYPE", 466);
define("VERR_MAIL_NO_MESSAGES", 467);
define("VERR_MAIL_INVALID_MESSAGE", 468);
define("VERR_MAIL_TEXT_TOO_LARGE", 469);
define("VERR_MAIL_INVALID_SESSION", 470);
define("VERR_MAIL_TYPE_NOT_SUPPORTED", 471);
define("VERR_MAIL_AMBIGUOUS_RECIPIENT", 472);
define("VERR_MAIL_MESSAGE_IN_USE", 473);
define("VERR_MAIL_NETWORK_FAILURE", 474);
define("VERR_MAIL_INVALID_EDITFIELDS", 475);
define("VERR_MAIL_INVALID_RECIPS", 476);
define("VERR_MAIL_NOT_SUPPORTED", 477);
define("VERR_ZLIB_STREAM", 500);
define("VERR_ZLIB_DATA", 501);
define("VERR_ZLIB_BUFFER", 502);
define("VERR_ZLIB_VERSION", 503);
define("VERR_VBAR2D_FORMAT_OUT_OF_RANGE", 550);
define("VERR_VBAR2D_UNDEFINED_ID", 551);
define("VERR_VBAR2D_FORMAT_TOO_LONG", 552);
define("VERR_VBAR2D_FORMAT_OUT_OF_MEMORY", 553);
define("VERR_VBAR2D_FORMAT_DATA_INVALID", 554);
define("VERR_VBAR2D_FORMAT_NOT_ALLOWED", 555);
define("VERR_VBAR2D_DATA_WRONG_LENGTH", 556);
define("VERR_VBAR2D_DATA_ZERO_LENGTH", 557);
define("VERR_VBAR2D_DATA_TOO_SHORT", 558);
define("VERR_VBAR2D_DATA_TOO_LONG", 559);
define("VERR_VBAR2D_INVALID_DATA", 560);
define("VERR_VBAR2D_SQUARE_EDGE_TOO_SMALL", 561);
define("VERR_VBAR2D_SQUARE_TOO_LARGE", 562);
define("VERR_VBAR2D_EDGE_OVER_FORCED", 563);
define("VERR_VBAR2D_SQUARE_ASPECT_SMALL", 564);
define("VERR_VBAR2D_SQUARE_ASPECT_LARGE", 565);
define("VERR_VBAR2D_SQUARE_EVEN_ODD_MATCH", 566);
define("VERR_VBAR2D_INVALID_EDGE", 567);
define("VERR_VBAR2D_SQUARE_EDGE_TOO_LARGE", 568);
define("VERR_VBAR2D_INVALID_ECC", 569);
define("VERR_VBAR2D_INVALID_BORDER", 570);
define("VERR_VBAR2D_SELF_TEST_FAILED", 571);
define("VERR_RTF_BRACES", 1000);
define("VERR_RTF_OVERFLOW", 1001);
define("VERR_RTF_FONTTBL", 1002);
define("VERR_RTF_COLORTBL", 1003);
define("VERR_TPL_OWNERSHIP", 2000);
define("VERR_TPL_PAGE_ALREADY_DUMPED", 2001);
define("VERR_TPL_AUTHENTICATION", 2002);
define("VORIENT_PORTRAIT", 1);
define("VORIENT_LANDSCAPE", 2);
define("VRES_DRAFT", -1);
define("VRES_LOW", -2);
define("VRES_MEDIUM", -3);
define("VRES_HIGH", -4);
define("VCOLOR_MONOCHROME", 1);
define("VCOLOR_COLOR", 2);
define("VDUP_SIMPLEX", 1);
define("VDUP_VERTICAL", 2);
define("VDUP_HORIZONTAL", 3);
define("VTT_BITMAP", 1);
define("VTT_DOWNLOAD", 2);
define("VTT_SUBDEV", 3);
define("VPAPER_A4", -1);
define("VPAPER_LETTER", -2);
define("VPAPER_LEGAL", -3);
define("VPAPER_CSHEET", -4);
define("VPAPER_DSHEET", -5);
define("VPAPER_ESHEET", -6);
define("VPAPER_LETTERSMALL", -7);
define("VPAPER_TABLOID", -8);
define("VPAPER_LEDGER", -9);
define("VPAPER_STATEMENT", -10);
define("VPAPER_EXECUTIVE", -11);
define("VPAPER_A3", -12);
define("VPAPER_A4SMALL", -13);
define("VPAPER_A5", -14);
define("VPAPER_B4", -15);
define("VPAPER_B5", -16);
define("VPAPER_FOLIO", -17);
define("VPAPER_QUARTO", -18);
define("VPAPER_10X14", -19);
define("VPAPER_11X17", -20);
define("VPAPER_NOTE", -21);
define("VPAPER_ENV_9", -22);
define("VPAPER_ENV_10", -23);
define("VPAPER_ENV_11", -24);
define("VPAPER_ENV_12", -25);
define("VPAPER_ENV_14", -26);
define("VPAPER_ENV_DL", -27);
define("VPAPER_ENV_C5", -28);
define("VPAPER_ENV_C3", -29);
define("VPAPER_ENV_C4", -30);
define("VPAPER_ENV_C6", -31);
define("VPAPER_ENV_C65", -32);
define("VPAPER_ENV_B4", -33);
define("VPAPER_ENV_B5", -34);
define("VPAPER_ENV_B6", -35);
define("VPAPER_ENV_ITALY", -36);
define("VPAPER_ENV_MONARCH", -37);
define("VPAPER_ENV_PERSONAL", -38);
define("VPAPER_FANFOLD_US", -39);
define("VPAPER_FANFOLD_STD_GERMAN", -40);
define("VPAPER_FANFOLD_LGL_GERMAN", -41);
define("VPAPER_USER_DEFINED", 0);
define("VPAPER_ISO_B4", -42);
define("VPAPER_JAPANESE_POSTCARD", -43);
define("VPAPER_9X11", -44);
define("VPAPER_10X11", -45);
define("VPAPER_15X11", -46);
define("VPAPER_ENV_INVITE", -47);
define("VPAPER_RESERVED_48", -48);
define("VPAPER_RESERVED_49", -49);
define("VPAPER_LETTER_EXTRA", -50);
define("VPAPER_LEGAL_EXTRA", -51);
define("VPAPER_TABLOID_EXTRA", -52);
define("VPAPER_A4_EXTRA", -53);
define("VPAPER_LETTER_TRANSVERSE", -54);
define("VPAPER_A4_TRANSVERSE", -55);
define("VPAPER_LETTER_EXTRA_TRANSVERSE", -56);
define("VPAPER_A_PLUS", -57);
define("VPAPER_B_PLUS", -58);
define("VPAPER_LETTER_PLUS", -59);
define("VPAPER_A4_PLUS", -60);
define("VPAPER_A5_TRANSVERSE", -61);
define("VPAPER_B5_TRANSVERSE", -62);
define("VPAPER_A3_EXTRA", -63);
define("VPAPER_A5_EXTRA", -64);
define("VPAPER_B5_EXTRA", -65);
define("VPAPER_A2", -66);
define("VPAPER_A3_TRANSVERSE", -67);
define("VPAPER_A3_EXTRA_TRANSVERSE", -68);
define("VPAPER_DBL_JAPANESE_POSTCARD", -69);
define("VPAPER_A6", -70);
define("VPAPER_JENV_KAKU2", -71);
define("VPAPER_JENV_KAKU3", -72);
define("VPAPER_JENV_CHOU3", -73);
define("VPAPER_JENV_CHOU4", -74);
define("VPAPER_LETTER_ROTATED", -75);
define("VPAPER_A3_ROTATED", -76);
define("VPAPER_A4_ROTATED", -77);
define("VPAPER_A5_ROTATED", -78);
define("VPAPER_B4_JIS_ROTATED", -79);
define("VPAPER_B5_JIS_ROTATED", -80);
define("VPAPER_JAPANESE_POSTCARD_ROTATED", -81);
define("VPAPER_DBL_JAPANESE_POSTCARD_ROTATED", -82);
define("VPAPER_A6_ROTATED", -83);
define("VPAPER_JENV_KAKU2_ROTATED", -84);
define("VPAPER_JENV_KAKU3_ROTATED", -85);
define("VPAPER_JENV_CHOU3_ROTATED", -86);
define("VPAPER_JENV_CHOU4_ROTATED", -87);
define("VPAPER_B6_JIS", -88);
define("VPAPER_B6_JIS_ROTATED", -89);
define("VPAPER_12X11", -90);
define("VPAPER_JENV_YOU4", -91);
define("VPAPER_JENV_YOU4_ROTATED", -92);
define("VPAPER_P16K", -93);
define("VPAPER_P32K", -94);
define("VPAPER_P32KBIG", -95);
define("VPAPER_PENV_1", -96);
define("VPAPER_PENV_2", -97);
define("VPAPER_PENV_3", -98);
define("VPAPER_PENV_4", -99);
define("VPAPER_PENV_5", -100);
define("VPAPER_PENV_6", -101);
define("VPAPER_PENV_7", -102);
define("VPAPER_PENV_8", -103);
define("VPAPER_PENV_9", -104);
define("VPAPER_PENV_10", -105);
define("VPAPER_P16K_ROTATED", -106);
define("VPAPER_P32K_ROTATED", -107);
define("VPAPER_P32KBIG_ROTATED", -108);
define("VPAPER_PENV_1_ROTATED", -109);
define("VPAPER_PENV_2_ROTATED", -110);
define("VPAPER_PENV_3_ROTATED", -111);
define("VPAPER_PENV_4_ROTATED", -112);
define("VPAPER_PENV_5_ROTATED", -113);
define("VPAPER_PENV_6_ROTATED", -114);
define("VPAPER_PENV_7_ROTATED", -115);
define("VPAPER_PENV_8_ROTATED", -116);
define("VPAPER_PENV_9_ROTATED", -117);
define("VPAPER_PENV_10_ROTATED", -118);
define("VBIN_UNTOUCHED", -1);
define("VBIN_UPPER", 1);
define("VBIN_ONLYONE", 1);
define("VBIN_LOWER", 2);
define("VBIN_MIDDLE", 3);
define("VBIN_MANUAL", 4);
define("VBIN_ENVELOPE", 5);
define("VBIN_ENVMANUAL", 6);
define("VBIN_AUTO", 7);
define("VBIN_TRACTOR", 8);
define("VBIN_SMALLFMT", 9);
define("VBIN_LARGEFMT", 10);
define("VBIN_LARGECAPACITY", 11);
define("VBIN_CASSETTE", 14);
define("VMAIL_ORIG", 0);
define("VMAIL_TO", 1);
define("VMAIL_CC", 2);
define("VMAIL_BCC", 3);
define("VMAIL_RESOLVE_NAME", -2147483648);
define("PREVIEW_STAY", 0);
define("PREVIEW_JUMPTOP", 1);
define("VKEY_SCROLL_LEFT", 0);
define("VKEY_SCROLL_PAGE_LEFT", 1);
define("VKEY_SCROLL_RIGHT", 2);
define("VKEY_SCROLL_PAGE_RIGHT", 3);
define("VKEY_SCROLL_UP", 4);
define("VKEY_SCROLL_PAGE_UP", 5);
define("VKEY_SCROLL_DOWN", 6);
define("VKEY_SCROLL_PAGE_DOWN", 7);
define("VKEY_SCROLL_TOP", 8);
define("VKEY_SCROLL_BOTTOM", 9);
define("VKEY_PRINT", 10);
define("VKEY_MAIL", 11);
define("VKEY_FULL_PAGE", 12);
define("VKEY_PAGE_WIDTH", 13);
define("VKEY_ZOOM_IN", 14);
define("VKEY_ZOOM_OUT", 15);
define("VKEY_GRID", 16);
define("VKEY_PAGE_FIRST", 17);
define("VKEY_PAGE_LEFT", 18);
define("VKEY_PAGE_RIGHT", 19);
define("VKEY_PAGE_LAST", 20);
define("VKEY_HELP", 21);
define("VKEY_INFO", 22);
define("VKEY_CLOSE", 23);
define("VKEY_GOTO_PAGE", 24);
define("VKEY_OPEN", 25);
define("VKEY_SAVE", 26);
define("VKEY_ESCAPE", 27);
define("VGUI_LANGUAGE_USER_DEFINED", -1);
define("VGUI_LANGUAGE_ENGLISH", 0);
define("VGUI_LANGUAGE_GERMAN", 1);
define("VGUI_LANGUAGE_FRENCH", 2);
define("VGUI_LANGUAGE_DUTCH", 3);
define("VGUI_LANGUAGE_SPANISH", 4);
define("VGUI_LANGUAGE_DANISH", 5);
define("VGUI_LANGUAGE_SWEDISH", 6);
define("VGUI_LANGUAGE_FINNISH", 7);
define("VGUI_LANGUAGE_ITALIAN", 8);
define("VGUI_LANGUAGE_NORWEGIAN", 9);
define("VGUI_LANGUAGE_PORTUGUESE", 10);
define("CM", 0);
define("INCH", 1);
define("VBOOKMARK_DEST_NONE", 0);
define("VBOOKMARK_DEST_LTZ", 1);
define("VBOOKMARK_DEST_FIT", 2);
define("VBOOKMARK_DEST_FITH", 3);
define("VBOOKMARK_DEST_FITV", 4);
define("VBOOKMARK_DEST_FITR", 5);
define("VBOOKMARK_DEST_FITB", 6);
define("VBOOKMARK_DEST_FITBH", 7);
define("VBOOKMARK_DEST_FITBV", 8);
define("VBOOKMARK_STYLE_NONE", 0);
define("VBOOKMARK_STYLE_BOLD", 1);
define("VBOOKMARK_STYLE_ITALIC", 2);
define("VBOOKMARK_STYLE_OPEN", 4);
define("PICEXP_QUALITY_NORMAL", 0);
define("PICEXP_QUALITY_HIGH", 1);
define("VPE_PDF_ACROBAT_4", 1300);
define("VPE_PDF_ACROBAT_5", 1400);
define("DOC_COMPRESS_NONE", 0);
define("DOC_COMPRESS_FLATE", 1);
define("DOC_ENCRYPT_NONE", 0);
define("DOC_ENCRYPT_STREAM", 1);
define("PDF_ALLOW_NONE", 0);
define("PDF_ALLOW_PRINT", 4);
define("PDF_ALLOW_MODIFY", 8);
define("PDF_ALLOW_COPY", 16);
define("PDF_ALLOW_TA_IFF", 32);
define("PDF_ALLOW_FILL_IFF", 256);
define("PDF_ALLOW_EXTRACT", 512);
define("PDF_ALLOW_ASSEMBLE", 1024);
define("PDF_ALLOW_HIQ_PRINT", 2048);
define("PDF_ALLOW_ALL", 3900);
define("VPE_PDF_A_LEVEL_NONE", 0);
define("VPE_PDF_A_LEVEL_1B", 1);
define("VPE_DOC_TYPE_AUTO", 0);
define("VPE_DOC_TYPE_VPE", 1);
define("VPE_DOC_TYPE_PDF", 2);
define("VPE_DOC_TYPE_HTML", 3);
define("VPE_DOC_TYPE_XML", 4);
define("VPE_DOC_TYPE_ODT", 5);
define("VCHARSET_DEFAULT", 1);
define("VCHARSET_SYMBOL", 2);
define("VCHARSET_MAC_ROMAN", 77);
define("VCHARSET_WIN_ANSI", 0);
define("VCHARSET_WIN_HEBREW", 177);
define("VCHARSET_WIN_ARABIC", 178);
define("VCHARSET_WIN_GREEK", 161);
define("VCHARSET_WIN_TURKISH", 162);
define("VCHARSET_WIN_VIETNAMESE", 163);
define("VCHARSET_WIN_THAI", 222);
define("VCHARSET_WIN_EAST_EUROPE", 238);
define("VCHARSET_WIN_CYRILLIC", 204);
define("VCHARSET_WIN_BALTIC", 186);
define("VCHARSET_ISO_LATIN_1", 50);
define("VCHARSET_ISO_LATIN_2", 51);
define("VCHARSET_ISO_LATIN_3", 52);
define("VCHARSET_ISO_LATIN_4", 53);
define("VCHARSET_ISO_CYRILLIC", 54);
define("VCHARSET_ISO_ARABIC", 55);
define("VCHARSET_ISO_GREEK", 56);
define("VCHARSET_ISO_HEBREW", 57);
define("VCHARSET_ISO_LATIN_5", 58);
define("VCHARSET_ISO_LATIN_6", 59);
define("VCHARSET_ISO_THAI", 60);
define("VCHARSET_ISO_LATIN_7", 62);
define("VCHARSET_ISO_LATIN_8", 63);
define("VCHARSET_ISO_LATIN_9", 64);
define("VRSCID_COPY_OF", 0);
define("VRSCID_PAGE_OF", 1);
define("VRSCID_BAND", 2);
define("VRSCID_ERROR", 3);
define("VRSCID_WARNING", 4);
define("VRSCID_PRINTING", 5);
define("VRSCID_CANCEL", 6);
define("VRSCID_OK", 7);
define("VRSCID_PRINT_DOC", 8);
define("VRSCID_FULL_PAGE", 9);
define("VRSCID_PAGE_WIDTH", 10);
define("VRSCID_ZOOM_IN", 11);
define("VRSCID_ZOOM_OUT", 12);
define("VRSCID_FIRST_PAGE", 13);
define("VRSCID_PREV_PAGE", 14);
define("VRSCID_NEXT_PAGE", 15);
define("VRSCID_LAST_PAGE", 16);
define("VRSCID_HELP", 17);
define("VRSCID_INFORMATION", 18);
define("VRSCID_CLOSE_PREVIEW", 19);
define("VRSCID_GRID", 20);
define("VRSCID_ENTER_PAGENO", 21);
define("VRSCID_ZOOM_FACTOR", 22);
define("VRSCID_STATUS", 23);
define("VRSCID_READY", 24);
define("VRSCID_EMAIL", 25);
define("VRSCID_OPEN", 26);
define("VRSCID_SAVE", 27);
define("VRSCID_ERROR_OPEN", 28);
define("VRSCID_ERROR_WRITE", 29);
define("VRSCID_USAGE", 30);
define("VRSCID_MOUSE", 31);
define("VRSCID_USAGE_MOUSE", 32);
define("VRSCID_KEYBOARD", 33);
define("VRSCID_USAGE_KEYBOARD", 34);
define("VGUI_THEME_OFFICE2000", 0);
define("VGUI_THEME_OFFICE2003", 1);
define("VGUI_THEME_WHIDBEY", 2);
define("VSCALE_MODE_FULL_PAGE", 0);
define("VSCALE_MODE_PAGE_WIDTH", 1);
define("VSCALE_MODE_ZOOM_TOOL", 2);
define("VSCALE_MODE_FREE", 3);
define("VENGINE_RENDER_MODE_VER3", 0);
define("VENGINE_RENDER_MODE_VER4", 1);
define("VUNIT_FACTOR_CM", 100000);
define("VUNIT_FACTOR_INCH", 254000);
define("VUNIT_FACTOR_MM10", 1000);
define("VSLC_MODE_WORD", 0);
define("VSLC_MODE_CHAR", 1);
define("VMAPI_TYPE_NOT_INSTALLED", 0);
define("VMAPI_TYPE_EXTENDED", 1);
define("VMAPI_TYPE_SIMPLE", 2);
define("PICEXP_JPEG_DEFAULT", 0);
define("PICEXP_JPEG_HI_QUALITY", 128);
define("PICEXP_JPEG_GOOD_QUALITY", 256);
define("PICEXP_JPEG_MID_QUALITY", 512);
define("PICEXP_JPEG_LO_QUALITY", 1024);
define("PICEXP_JPEG_BAD_QUALITY", 2048);
define("PICEXP_JPEG_PROGRESSIVE", 8192);
define("PICEXP_TIFF_DEFAULT", 0);
define("PICEXP_TIFF_PACKBITS", 256);
define("PICEXP_TIFF_DEFLATE", 512);
define("PICEXP_TIFF_ADOBE_DEFLATE", 1024);
define("PICEXP_TIFF_NONE", 2048);
define("PICEXP_TIFF_CCITTFAX3", 4096);
define("PICEXP_TIFF_CCITTFAX4", 8192);
define("PICEXP_TIFF_LZW", 16384);
define("PICEXP_TIFF_JPEG", 32768);
define("PICEXP_TIFF_APPEND", 1073741824);
define("PICEXP_GIF_DEFAULT", 0);
define("PICEXP_GIF_APPEND", 1073741824);
define("PICEXP_BMP_DEFAULT", 0);
define("PICEXP_BMP_RLE", 1);
define("PICEXP_PNM_DEFAULT", 0);
define("PICEXP_PNM_ASCII", 1);
define("PICEXP_COLOR_MONO", 1);
define("PICEXP_COLOR_16", 4);
define("PICEXP_COLOR_256", 8);
define("PICEXP_COLOR_HI", 16);
define("PICEXP_COLOR_TRUE", 24);
define("PICEXP_DITHER_NONE", 0);
define("PICEXP_DITHER_MONO", 1);
define("PICEXP_DITHER_256", 3);
define("PICEXP_DITHER_256_WU", 4);
define("VCHART_POINT", 0);
define("VCHART_LINE", 1);
define("VCHART_BAR", 2);
define("VCHART_STACKED_BAR_ABSOLUTE", 3);
define("VCHART_STACKED_BAR_PERCENT", 4);
define("VCHART_3D_BAR", 5);
define("VCHART_3D_STACKED_BAR_ABSOLUTE", 6);
define("VCHART_3D_STACKED_BAR_PERCENT", 7);
define("VCHART_PIE", 8);
define("VCHART_3D_PIE", 9);
define("VCHART_AREA_ABSOLUTE", 10);
define("VCHART_AREA_PERCENT", 11);
define("VCHART_SYMBOL_NONE", -1);
define("VCHART_SYMBOL_SQUARE", 0);
define("VCHART_SYMBOL_TRIANGLE", 1);
define("VCHART_SYMBOL_CIRCLE", 2);
define("VCHART_SYMBOL_CROSS", 3);
define("VCHART_SYMBOL_X", 4);
define("VCHART_SYMBOL_POINT", 5);
define("VCHART_LEGENDPOS_NONE", -1);
define("VCHART_LEGENDPOS_RIGHT", 0);
define("VCHART_LEGENDPOS_RIGHT_TOP", 1);
define("VCHART_LEGENDPOS_RIGHT_BOTTOM", 2);
define("VCHART_LEGENDPOS_LEFT", 3);
define("VCHART_LEGENDPOS_LEFT_TOP", 4);
define("VCHART_LEGENDPOS_LEFT_BOTTOM", 5);
define("VCHART_LEGENDPOS_TOP", 6);
define("VCHART_LEGENDPOS_BOTTOM", 7);
define("VCHART_LABEL_NONE", -1);
define("VCHART_LABEL_USER", 0);
define("VCHART_LABEL_AUTO", 1);
define("VCHART_PIE_LABEL_NONE", 0);
define("VCHART_PIE_LABEL_PERCENTAGE", 1);
define("VCHART_PIE_LABEL_LEGEND", 2);
define("VCHART_PIE_LABEL_XLABELS", 3);
define("VCHART_GRID_NONE", -1);
define("VCHART_GRID_BOTH_AXIS", 0);
define("VCHART_GRID_X_AXIS", 1);
define("VCHART_GRID_Y_AXIS", 2);
define("VBAR2D_ALIGN_CENTER", 0);
define("VBAR2D_ALIGN_CENTER_H", 0);
define("VBAR2D_ALIGN_LEFT", 1);
define("VBAR2D_ALIGN_RIGHT", 2);
define("VBAR2D_ALIGN_CENTER_V", 0);
define("VBAR2D_ALIGN_TOP", 4);
define("VBAR2D_ALIGN_BOTTOM", 8);
define("VBAR2D_DATA_MATRIX_ENC_BASE11", 1);
define("VBAR2D_DATA_MATRIX_ENC_BASE27", 2);
define("VBAR2D_DATA_MATRIX_ENC_BASE41", 3);
define("VBAR2D_DATA_MATRIX_ENC_BASE37", 4);
define("VBAR2D_DATA_MATRIX_ENC_ASCII", 5);
define("VBAR2D_DATA_MATRIX_ENC_BINARY", 6);
define("VBAR2D_DATA_MATRIX_ECC000", 0);
define("VBAR2D_DATA_MATRIX_ECC010", 1);
define("VBAR2D_DATA_MATRIX_ECC040", 2);
define("VBAR2D_DATA_MATRIX_ECC050", 3);
define("VBAR2D_DATA_MATRIX_ECC060", 4);
define("VBAR2D_DATA_MATRIX_ECC070", 5);
define("VBAR2D_DATA_MATRIX_ECC080", 6);
define("VBAR2D_DATA_MATRIX_ECC090", 7);
define("VBAR2D_DATA_MATRIX_ECC100", 8);
define("VBAR2D_DATA_MATRIX_ECC110", 9);
define("VBAR2D_DATA_MATRIX_ECC120", 10);
define("VBAR2D_DATA_MATRIX_ECC130", 11);
define("VBAR2D_DATA_MATRIX_ECC140", 12);
define("VBAR2D_DATA_MATRIX_ECC200", 26);
define("VBAR2D_QRCODE_MODE_DEFAULT", 2);
define("VBAR2D_QRCODE_MODE_KANJI", 3);
define("VBAR2D_QRCODE_ECC_LEVEL_L", 0);
define("VBAR2D_QRCODE_ECC_LEVEL_M", 1);
define("VBAR2D_QRCODE_ECC_LEVEL_Q", 2);
define("VBAR2D_QRCODE_ECC_LEVEL_H", 3);
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: PHP Report on Server

Postby jeramosm » Mon Oct 20, 2014 9:36 pm

Thanks, it worked well.
jeramosm
 
Posts: 7
Joined: Sat Feb 28, 2009 8:30 pm
Location: Guadalajara, Mexico

Re: PHP Report on Server

Postby jeramosm » Mon Oct 20, 2014 9:42 pm

If I wish to migrate the web server from Windows Server to Linux, do I have to make any modifications to the code, or only buy a license of VPE for Linux?
jeramosm
 
Posts: 7
Joined: Sat Feb 28, 2009 8:30 pm
Location: Guadalajara, Mexico

Re: PHP Report on Server

Postby IDEAL Software Support » Tue Oct 21, 2014 8:23 am

On Linux you need a license for Linux. But PHP supports COM and ActiveX only on Windows - this technology does not exist outside of Windows. We are currently developing a special PHP component of VPE on non-Windows platforms, but it is not finished yet. It will be done in about 2 - 3 months from now.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 13 guests

cron