Customer Login Forum Online Help Open Source Deutsche Version

Report Engine and PDF Library: Example code in PHP

function CreateDocument()
{
$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 Document.pdf");
$Report->CloseDoc();
}

bullet Customer's Responses

"I have been constantly fighting with the limitations of Seagate Crystal Reports to get the reports that I want. Now, with VPE, I'm glad to have found a reporting tool that offers all the freedom I need. I have not yet come across a problem that VPE couldn't handle! Thanks for your help!"

Mark Irwin, Developer, Canada Life Assurance Company, Regina, Saskatchewan, Canada

More...