RichView, Reportbuilder and wPDF

General TRichView support forum. Please post your questions here
Post Reply
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

RichView, Reportbuilder and wPDF

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post 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
toolwiz
Posts: 150
Joined: Wed Nov 30, 2005 3:27 am

Post 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?
Post Reply