OK, I found that, it is working, thank you!
But I do the creating of PDF in a COM-Server, and there I always get the LastError-Variable with 0!
WPPDFPrinter1->BeginDoc();
iPDFError = WPPDFPrinter1->LastError;
if (iPDFError == 0)
{
...
}
else
{
return -1;
}
Lewis