Hello,
I'm using the TeeChart Pro version 6 and it appears that the property PrintResolution is not taken into account when using the TreeCreateMetafile method.
I need to get an high curve resolution and keep the Axis Font the same size as shown on the source screen. I expected the PrintResolution=-100 would do the trick.
Is this behavior normal? Am I doing something wrong? Does the latest version handle the printResolution property when using TreeCreateMetafile?
Best Regards
Luc J.
PrintResolution
-
- Newbie
- Posts: 4
- Joined: Tue Aug 31, 2004 4:00 am
- Contact:
-
- Newbie
- Posts: 4
- Joined: Tue Aug 31, 2004 4:00 am
- Contact:
Hi Luc,
have you tried to use the following code to create te metafile ?
This should give you a good resolution.
have you tried to use the following code to create te metafile ?
Code: Select all
uses TeeEmfOptions;
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if SaveDialog1.Execute then
with TEMFExportFormat.Create() do
begin
try
Panel := chart1;
Width := Chart1.Width;
Height := Chart1.Height;
Enhanced := true;
SaveToFile(SaveDialog1.FileName);
finally
Free;
end;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 4
- Joined: Tue Aug 31, 2004 4:00 am
- Contact:
Hi,
Unfortunatly, this does not solve the issue. I've done a prototype and if I save the metafile when the chart width and Height are small, the metafile does not provide a good vectoriel image.
I can send you the prototype if you give me an e-mail address by writing to luc.jeanniard[at]varianinc.com
Best Regards
Luc
Unfortunatly, this does not solve the issue. I've done a prototype and if I save the metafile when the chart width and Height are small, the metafile does not provide a good vectoriel image.
I can send you the prototype if you give me an e-mail address by writing to luc.jeanniard[at]varianinc.com
Best Regards
Luc
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Luc,
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 4
- Joined: Tue Aug 31, 2004 4:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Luc,
Thanks for the example project. It seems to us that generated metafile has a good resolution. Which is the exact problem you are having with it and what you'd like to get?
Thanks in advance.
Thanks for the example project. It seems to us that generated metafile has a good resolution. Which is the exact problem you are having with it and what you'd like to get?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Luc,
Thanks for the files.
It seems that PrintResolution is not exporting to Metafile on that way.
For more resolution you should make the chart bigger before export, which is what PrintResolution does internally, that will increase resolution. If you want you can do it percentually as PrintPreview does.
Thanks for the files.
It seems that PrintResolution is not exporting to Metafile on that way.
For more resolution you should make the chart bigger before export, which is what PrintResolution does internally, that will increase resolution. If you want you can do it percentually as PrintPreview does.
Code: Select all
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if SaveDialog1.Execute then
with TEMFExportFormat.Create() do
begin
try
Panel := chart1;
Chart1.Width := Chart1.Width + (Chart1.Width * 5);
Chart1.Height := Chart1.Height + (Chart1.Height * 5);
Chart1.PrintResolution := -50;
Width := Chart1.Width;
Height := Chart1.Height;
Chart1.Width := Chart1.Width - (Chart1.Width * 5 );
Chart1.Height := Chart1.Height - (Chart1.Height * 5);
Enhanced := true;
SaveToFile(SaveDialog1.FileName);
finally
Free;
end;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |