Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > Sample Code
  New Posts New Posts RSS Feed - Delphi TChart example
  FAQ FAQ  Forum Search   Register Register  Login Login

Delphi TChart example

 Post Reply Post Reply
Author
Message
RhoTu View Drop Down
Beginner
Beginner


Joined: 29 Jun 09
Location: Minnesota
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote RhoTu Quote  Post ReplyReply Direct Link To This Post Topic: Delphi TChart example
    Posted: 10 Jul 09 at 3:49PM
The following code is a snippet from an application that uses a TChart component that is inserted into a document
 
HTH
 
RT
 
    rcfTchart:begin
                strm:=TMemoryStream.Create;
                img:=TImage.Create(nil);
                rcChart.Width:=trunc(width*600);
                rcChart.Height:=trunc(height*600);
                img.Width:=rcChart.Width;
                img.Height:=rcChart.Height;
                rcChart.PrintPartialCanvas(img.Canvas,rect(0,0,rcChart.Width,rcChart.Height));
                img.Picture.Graphic.SaveToStream(strm);
                strm.Seek(0,0);
                imgID:=doc.AddImageFromStream(strm,0);
                doc.SelectImage(imgID);
                doc.DrawImage(left,top,width,height);
                freeAndNil(img);
                freeAndNil(strm);
                used:=used+height;
              end;
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store