Printing AX-V7 in .NET using the PrintDocument???
Printing AX-V7 in .NET using the PrintDocument???
Hi all!
Is it possible to print Tcharts using the .net-printdocument, so I can use the .net print preview and all of the other document related stuff of VS?
I need to place more (>2) Tcharts and mixed graphics on a single page?
If yes, can somebody post me a short coding example for VB?
Thanks in advance!
Alex
Is it possible to print Tcharts using the .net-printdocument, so I can use the .net print preview and all of the other document related stuff of VS?
I need to place more (>2) Tcharts and mixed graphics on a single page?
If yes, can somebody post me a short coding example for VB?
Thanks in advance!
Alex
Hi Alex,
yes, this can be done. The best way is by exporting the Chart image to stream, and then when you need to print it, import the stream as an image and draw it on the Print Document, using the DrawImage method in the PrintPage event.
yes, this can be done. The best way is by exporting the Chart image to stream, and then when you need to print it, import the stream as an image and draw it on the Print Document, using the DrawImage method in the PrintPage event.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi Pep,
thanks for the hint. I came to a similar solution to print on multiple pages using this method.
If someone looks for the code I use:
But what I still want to know: I use a metafile format, this is according to the definition a real vector format. E.g. I draw in TChart a polygon (x/y), why do the lines are splitted up in x/y resultion? Instead of my 10 point polygon I get a 40 point polygon based on the resultion of the metafile. Why are the lines not a single line between my polgon points? Is the basis of a metafile still "pixel"?
Thanks another time!
Regards
Alex
thanks for the hint. I came to a similar solution to print on multiple pages using this method.
If someone looks for the code I use:
Code: Select all
Dim TStream As New System.IO.MemoryStream
FGrafik.TChart1.Export.Image.Metafile.Save(TStream)
TStream.Position = 0
Dim be_test As New Imaging.Metafile(TStream)
e.Graphics.DrawImage(be_test, 25, 40, 250, 350)
be_test.Dispose()
Thanks another time!
Regards
Alex
Hi Alex,
How can I see what you refer ? Could you please show me the code you're using to reproduce this behaviour ?But what I still want to know: I use a metafile format, this is according to the definition a real vector format. E.g. I draw in TChart a polygon (x/y), why do the lines are splitted up in x/y resultion? Instead of my 10 point polygon I get a 40 point polygon based on the resultion of the metafile. Why are the lines not a single line between my polgon points? Is the basis of a metafile still "pixel"?
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
Please post them at the steema.public.attachments newsgroup available at news://www.steema.net.
Thanks in advance.
Please post them at the steema.public.attachments newsgroup available at news://www.steema.net.
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 Alex,
An example project has been attached to a reply to your message in the steema.public.attachments newsgroup.
An example project has been attached to a reply to your message in the steema.public.attachments newsgroup.
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 |