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 

Tprintprview : Re-edit a canevas ?

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


Joined: 07 Oct 2003
Posts: 9

PostPosted: 08/04/04 09:22    Post subject: Tprintprview : Re-edit a canevas ? Reply with quote

Hello

i have 3 pages on my project, if i have create page N°3 with .NewPage procedure, can i edit the canevas in my second page ?

i have a little problem for calculate total number (pages) of my print, and i have trying to edit a canevas, but i can't rewrite on this canevas (n°2)

Can i edit a canevas, if a i have create already a new page ?

Thanks
excuse for my poor english, but if anyone speak french Smile
David
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 361

PostPosted: 11/04/04 14:10    Post subject: Reply with quote

Each page is a metafile, so you can edit it.
Back to top
View user's profile Send e-mail Visit poster's website
dav999
Member


Joined: 07 Oct 2003
Posts: 9

PostPosted: 13/05/04 12:10    Post subject: Reply with quote

I can edit each page ?

Can i seek the first page and make this :
print.canevas.textout(150,150,'Text');

i can't reedit my page for insert the n# total of my pages

Thanks
David

ps : i try to add after 2 pages in manual mode (drawtext, textout,...), to insert a RTF document, it's no a problem ?

if you would i can send you the source code
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 361

PostPosted: 14/05/04 10:54    Post subject: Reply with quote

I added BeginEdit and EndEdit methods to the control's interface. Using these methods, editing an existing page is similar to its creation.

For example, the following code can be used for your purpose:

Code:
with PrintPreview do
  for PageNo := 1 to TotalPages do
    if BeginEdit(PageNo) then
      try
        // Use Canvas to draw on the page
      finally
        EndEdit;
      end;

By the way, while editing a page, PrintPreview.State property is psEditing.

Cheers,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
dav999
Member


Joined: 07 Oct 2003
Posts: 9

PostPosted: 14/05/04 11:15    Post subject: Reply with quote

Ok thanks for your great componants

i go immediatly download the new version

david
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