Resolution problem when converting rtf

  • Hello

    I try to create a pdf out of rtf-data with the following code.

    Code
    WPRichTextAnzeige->Refresh(false);
    WPPDFExport1->CompressStreamMethod = wpCompressFlate;
    WPPDFExport1->Source = WPRichTextAnzeige;
    WPPDFExport1->Filename = Pdf;
    WPPDFExport1->Print();

    This works ok if I set the option CanvasReference to wprefPrinter, but with wprefScreen the contents doesn't fit into the page. The problem is: I have to produce the pdf in a service-application, and if I try to create the pdf with wprefPrinter the contents doesn't fit into the page. It seems like there is no printer-device available for the service-application. Is there any way to set the resultion manually? I tried to use StartPage, but this produces an empty page before the real pdf-data.
    By the way: I use WPTools5/WPdf210. With WPTools 4 everything seemed to work well with wprefScreen.

    Greetings
    Michael Stephan