-
hannesc said 9 months, 3 weeks ago:
Hi,
Is there code samples anywhere on the ComponentOne website where they show how to add a C1Chart to a C1PrintDocument?
Thanks
Hannes| # -
Hello,
There isn’t any way to add the C1Chart to C1PrintDocument as only renderobjects can be added to it.
However, a workaround for you is to save the C1Chart as image and then add this image in C1PrintDocument as renderimage.
Let us know if you require any further assistance.
Regards,
MohitaAnswer| # -
TRIMS9 said 9 months, 2 weeks ago:
Mohita:
Don’t know if this is same question as above – don’t know about c1printdocument.
How do you display a C1Chart in a c1PrintPreview Control?
I would like to use a consistent print interface for both reports and charts if possible.Lee
| # -
Hello Lee,
C1Chart can not be directly previewed in C1PrintPreviewControl, hence, you may add the same in C1PrintDocument and then preview it in the C1PrintPreviewControl.
Adding of the chart in C1PrintDocument has already been mentioned in my last post. You may also refer to the following link to learn more about C1PrintDocument :
http://helpcentral.componentone.com/nethelp/c1report/default.htm#!Documents/workingwithc1printdo.htm
Regards,
Mohita| # -
TRIMS9 said 9 months, 2 weeks ago:
Mohita:
Thank you again – am able to print charts using the c1chart.print method and that will work for me.
No real need to print chart to PDF so the export function provided by c1printpreview is not required.Lee
| #
You must be logged in to reply to this topic.

