#1 2016-05-12 11:09:44

cosworth
Member
Registered: 2016-02-05
Posts: 10

adding rects to TGDIPages Headers

Is it possible to add rects to the headers section, also multi lines. What I am trying to achieve is Address printed in rectangles and other info that repeat on each page. I'm creating purchase orders that have to have all the header and footer info printed on every page. I have this working with TPdfDocumentGDI but TGDIPAges example looks like a much easier solution for layouts and tracking y position for page throws.
Thanks

Offline

#2 2016-05-12 16:05:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: adding rects to TGDIPages Headers

For this, you would have to manually write on the page's canvas, using regular VCL calls.

Offline

#3 2016-05-12 18:21:53

cosworth
Member
Registered: 2016-02-05
Posts: 10

Re: adding rects to TGDIPages Headers

would that tie it to the header?

Offline

#4 2016-07-15 20:33:45

cosworth
Member
Registered: 2016-02-05
Posts: 10

Re: adding rects to TGDIPages Headers

Sorry about my previous comment, I hadn't really thought about it. It's been a couple of months since I last looked at this and I have spent most of the week going around in circles, I have used the GDIpages but found that any writes to the canvas covered anything already written to the canvas. I am trying to write a block of text to the screen (an address), previously I had a method with another component that allowed a block of text to be written to a set of coords (left, top,right, bottom) with wordwrap and alignment. I am trying to replicate this, without having to textout for each line. I have tried Tectrect but this just doesn't work. Any pointers would be greatfully recieved.

Offline

#5 2016-07-15 20:39:47

cosworth
Member
Registered: 2016-02-05
Posts: 10

Re: adding rects to TGDIPages Headers

The GDIPages component is excellent and very quick to use and learn, is it possible for the DrawTextacross columns to not go to the full width of the page and have an option for lines between columns?

Offline

Board footer

Powered by FluxBB