Page 1 of 1
RichView, Reportbuilder and wPDF
Posted: Wed Dec 05, 2007 12:56 pm
by BernhardRoos
We are using wPDF for exporting the Reports from Reportbuilder to PDF File. But it seems that RichView don't works with wPDF. The place is empty.
Julia Ziersch (who has written the wPDF component) says, it should work but maybe RichView don't write correct to the metafile
What is your opinion? Should RichView works with Reportbuilder/wPDF?
Best wishes
Bernhard
Posted: Mon Dec 10, 2007 1:43 pm
by Sergey Tkachenko
It's not tested.
Can you make a test application? Do you know if all necessary wPDF components are available as trials?
Posted: Mon Dec 10, 2007 2:50 pm
by BernhardRoos
Hello,
I've solved the problem with some changes in ppRichView.pas. I've made it similar to the llpdflib (which is supported in ppRichView.pas). Now it works fine.
I don't know if all necessary wPDF components are available as trial (but I think so)
My changes in ppRichView.pas are :
1. In the uses wppdfRBDev
2. In tppDrawRichView.DoDraw a new else if :
...
else if (aDevice is tppwpdfdevice) then begin
lCanvas := tppwpdfdevice(aDevice).Canvas;
ADrawRect := DrawRect;
end
...
3. Changing in the if condition on line 1200 :
...
Or (aDevice is tppwpdfdevice) ...
That's all.
Best wishes
Bernhard
Posted: Mon Dec 10, 2007 8:28 pm
by toolwiz
Yuk. Isn't there another way to do this besides mucking with the original source?
Inheritance?
Or override something in an event handler?