Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1154

Summary: Printing issue using Printer.PrintPartialHandle command
Product: ActiveX TeeChart Reporter: kchan
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: sandra
Priority: High    
Version: TeeChart Pro Activex Control v2014 v2014.0.0.1 Release   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: zip file containing a vb6 project and a JPEG screenshot

Description kchan 2015-02-27 06:51:56 EST
Created attachment 410 [details]
zip file containing a vb6 project and a JPEG screenshot

Upgrading from Teechart v6 to Teechart v2014 v2014.0.0.1

Using TChart.Printer.PrintPartialHandle command to dynamically print text and Teechart. 

Find the text for Title, Axis labels, Legend, is significantly larger when printed out, than what is displayed on the screen. It prints correctly sized in Teechart v6, using the same code.

Has there been a change to Teechart v2014 I need to be aware of?

Attached is a zip file of a simple VB6 project showing the problem. 

Also included is JPEG screenshot showing the print result of it with text being larger.


Language: English
OS: Windows 7 64 bit
Comment 1 sandra pazos 2015-03-03 11:42:57 EST
The problem is produced when GDI+ is enable. Meantime, if you want fix the problem you can disable the GDI+. 

Thanks,
Comment 2 kchan 2015-03-10 07:21:06 EDT
Thank you for advising to switch off GDI+. I am attempting to do this through code using command

    TChart1.Aspect.GDIPlus.Active = False

It gave a memory exception. Then read this article 

http://steema.com/wp/blog/2014/03/12/teechart-and-gdi-inside-a-dll/


So attempted to initialise a GDI+ object before setting GDIPlus to false. 

    tStartup.DebugEventCallback = 0
    tStartup.SuppressBackgroundThread = False
    tStartup.SuppressExternalCodecs = False
    tStartup.GdiplusVersion = 1

    GdiplusStartup token, tStartup, 0


    TChart1.Aspect.GDIPlus.Active = False


    GdiplusShutdown token


But unfortunately this has not worked. Can you advise on a possible solution as soon as possible?

Thanks
Comment 3 sandra pazos 2015-03-13 10:45:07 EDT
*** Bug 1163 has been marked as a duplicate of this bug. ***