multichart to 1 page pdf export?

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 15
Joined: Fri Apr 01, 2016 12:00 am

multichart to 1 page pdf export?

Post by nbp » Tue Mar 21, 2017 11:14 pm

I tried something similar to the example above and it works. I'm using TChart 2015 ocx, ActiveX.

I added a TeePreviewPanel at Design time to a blank CDialog. I then added N charts onto the PreviewPanel at runtime and placed them relative to each other.

How can I give the user the option to select a printer so that he/she can select a pdf file to print or any other printer? i.e. I want to display the Print Previewer from a button on the CDialog.

PreviewPanel->PrintPage() prints a page to the default printer without letting the user select the printer.

Any help will be appreciated.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: multichart to 1 page pdf export?

Post by Sandra » Wed Mar 22, 2017 1:56 pm

Hello nbp,

I think the best option for you is taking a look in the Visual C++ examples, specifically to Printing example. The example is in the path below:
%Program Files (x86)%\Steema Software\TeeChart Pro v2017 ActiveX Control\Examples\Visual C++\Version 6 \Printing

In the example, is used a Menu to allow the users select the printer they want.

Hoping it helps you, otherwise don't hesistate to contact us.

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nbp
Newbie
Newbie
Posts: 15
Joined: Fri Apr 01, 2016 12:00 am

Re: multichart to 1 page pdf export?

Post by nbp » Wed Mar 22, 2017 8:32 pm

Thanks. I didn't have access to the View class to use the built in printing support such as the OnPrint() method so couldn't use that specific example.

But I found the following link http://www.teechart.net/support/viewtop ... 817#p62520very useful and now I've got it working correctly. The user can either select a printer or a pdf and then do a PrintPage on the TeePreviewPanel object.

Thanks.

Post Reply