DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

export tprintpreview to pdf

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
matijsmoest
Member


Joined: 18 Feb 2004
Posts: 4

PostPosted: 18/02/04 15:30    Post subject: export tprintpreview to pdf Reply with quote

I want to export de printpreview to a pdf-file.
I have an lib to write on the canvas of a pdf-file.

But the resolution of the printpreview is a lot bigger as a pdf file.

Is there some way to scale the canvas or first export is to an image.....
Back to top
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 122

PostPosted: 18/02/04 19:56    Post subject: Reply with quote

heh.. i usually use wn2pdf ghostprinter, but if you have lib, then maybe it's some way restricted to low resolution? (i can print on it with really high resolution)
Back to top
View user's profile
matijsmoest
Member


Joined: 18 Feb 2004
Posts: 4

PostPosted: 19/02/04 07:51    Post subject: Reply with quote

this is solution!

but I want to have everything in my own application.
now I have a resolution of 21000*29700 with tprintpreview.

when i write the canvas of tprintpreview on a canvas of a pdf-file I see nothing. If I'm lucky the topleft of the border.

does anybody have experience with this problem?
Back to top
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 122

PostPosted: 19/02/04 15:22    Post subject: Reply with quote

try to lower units (ex. from HiMetric to LoMetric).
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 314

PostPosted: 19/02/04 23:10    Post subject: Reply with quote

How do you print the preview as PDF, using metafiles or direct print?
Back to top
View user's profile Send e-mail Visit poster's website
matijsmoest
Member


Joined: 18 Feb 2004
Posts: 4

PostPosted: 20/02/04 11:45    Post subject: Reply with quote

Via Metafiles..
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 314

PostPosted: 20/02/04 22:05    Post subject: Reply with quote

PrintPreview's metafiles are in screen resolution, however if you stretch them on the target area, there should not be any problem.
Back to top
View user's profile Send e-mail Visit poster's website
matijsmoest
Member


Joined: 18 Feb 2004
Posts: 4

PostPosted: 24/02/04 10:04    Post subject: Reply with quote

expbmp := TBitMap.Create;
expbmp.Width:=2100;
expbmp.Height:=2970;

Windows.PlayEnhMetaFile( expbmp.Canvas.Handle,
PrintPreview1.Pages[ 1 ].Handle,
Rect( 100, 100, 2100, 2970 ) );


This works
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group