Hi,
I've been trying to use TRVReportHelper.DrawPageAt to draw on Canvas (TRichViewPdf) with an specific offset, it works for all the text in the rtf document but all borders/tables remain with no offset.
Creating RTF with TRichView:
Canvas drawn with TRVReportHelper.DrawPageAt (offset):
Canvas drawn with TRVReportHelper.DrawPage (no offset):
Any suggestion? solution?
DrawPageAt Offset problem
-
- Site Admin
- Posts: 17571
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Clearly, TRichViewPDF does not support offsets (implemented in DrawPageAt using SetWindowOrgEx function) properly.
Workarounds:
- asking TRichViewPDF developer to fix this problem;
- trying using DrawPage + SetViewPortOrgEx, may be it will be supported better;
- (the simplest workaround) assign offsets to RVReportHelper.RichView.LeftMargin and RVReportHelper.RichView.TopMargin (before calling RVReportHelper.Init; the Init parameter must be increased by horizontal offset)
Workarounds:
- asking TRichViewPDF developer to fix this problem;
- trying using DrawPage + SetViewPortOrgEx, may be it will be supported better;
- (the simplest workaround) assign offsets to RVReportHelper.RichView.LeftMargin and RVReportHelper.RichView.TopMargin (before calling RVReportHelper.Init; the Init parameter must be increased by horizontal offset)