Adding Custom Text to Chart |
Post Reply ![]() |
Author | |
Deuerling Robert ![]() New Member ![]() Joined: 20 Mar 2015 Posts: 2 |
![]() ![]() ![]() ![]() Posted: 21 Mar 2015 at 10:44pm |
Is it possible to add text to a chart which can be saved and printed?
I want to have a box e.g. in the right corner and then put there some informations related to the chart. The chart should contain additional informations e.g. name of the part, date of the chart, location,... My first thought was to use the ondrawchart-event, but the information added here could not be saved to the file :/ only chartdata is saved. Using a backgroundpicture and put the text via textout works, but the text will be overriden by the graphic as it's the nature of a backgroundpic.... What's the right way to achive this?
|
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
Printing is explained at the following tip: http://tmssoftware.com/site/advchart.asp?s=faq&show=392 When the chart is printed, additional information can be drawn at the printer canvas. Please note that this is only for the normal version of the chart. For the GDI+ version, you will need to use a bitmap to print on the printer. This is explained at the following page: http://tmssoftware.com/site/advchart.asp?s=faq&show=439 Kind Regards, Pieter
|
|
![]() |
|
Deuerling Robert ![]() New Member ![]() Joined: 20 Mar 2015 Posts: 2 |
![]() ![]() ![]() ![]() |
Thx Pieter printing now works perfectly.
What about saving the pane? I use ChartView.SaveToImage(... with GDI+ Kind Regards -Robert
|
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
Does the SaveToImage produces an incorrect output? Kind Regards, Pieter
|
|
![]() |
|
Robert Deuerling ![]() New Member ![]() Joined: 18 Mar 2015 Posts: 8 |
![]() ![]() ![]() ![]() |
Hi,
the chart displays correctly. SaveToImage does not contain my additional Info. I worked around by using the print-function-way to a bitmap, add my infos to the bitmap and then convert the bitmap to the corresponding outputtype (png, jpeg, bmp,...) by hand. There's no such feature like an overlay to put on the chart or a similar way to do this. ChartView.addOverlayAt(destRect, overlayBmp, copyMode). Kind Regards -Robert |
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
This feature is currently not included. You will need to save the chart to a bitmap, and then print the bitmap on the printer and add additional text to it. Kind Regards, Pieter
|
|
![]() |
Post Reply ![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |