Hello
I am receiving an access violation when the following line of code is executed.
w := MulDiv(FSource.Memo._PaintPages[i].WidthTw,WPScreenPixelsPerInch,1440);
This line is from the PrintPages procedure in the WPPDFWP unit.
What I am doing is taking a TImage and inserting it into a TWPRichtext.
Bitmap.LoadFromFile(FilePath);
Image1.Picture.Assign(Bitmap);
RichText.TextObjects.Insert(NewObject(Image1));
I then assign my TWPRichtext to a TWPPDFExort
PDFExport.Source := RichText;
When I call print I get an access violation.
PDFExport.Filename := (FilePath+cCo_Code+cTarget+'.pdf');
PDFExport.BeginDoc;
PDFExport.Print;
PDFExport.EndDoc;
Any ideas?
I am using Delphi 7 with wptools 5. This did work using Wptools 4.
Zo