#1 PDF Engine » Len Int64 » 2016-08-19 08:55:04

cosworth
Replies: 1

Hi
In TSynPicture.SaveAs there is a variable Len UInt64 which I have to change to Int64 to compile in Delphi 7 and back to UInt64 for Delphi 10. Is this fixed in later version?

#2 Re: PDF Engine » Help with PDFDocumentGDI » 2016-07-27 10:59:44

I will be taking a look at the rest of mORMot later. I currently produce a pdf with a varied number of pages. All the coordinates are stored in 2 tables, one for the default layout i.e Titles, rects, lines and fixed text, the other table holds the coordinates for the data. I use 3 Stored Procedures to extract the data to be printed joined with the coordinates it's to be printed at. 1 stored procedure provides the Header Data, i.e. Address's that repeat on each page but are different for each report, another Stored Proc for the footer information and summary data, again, mostly the same for each page and different for each report (it does subtotaling if it page throws) and the 3 Stored Proc supplies the detail which could be any number of lines and has a free text field (Varchar 5000). So I have to keep track of the Y position. I currently control all this from code and TextOut, I did some work with the GDIPages and liked it, done a few other reports with it, but I couldn't control how far down the page DrawAcrossColumns went before it went to the next page, I'm sure it can be done but I only have a finite amount of time to solve a Threading problem with another component. I believe my lack of understanding is probably a general programming issue rather anything with your product, but it's something I haven't had to research since I have been using a component that allowed page numbering and handled for me.

#3 PDF Engine » Help with PDFDocumentGDI » 2016-07-27 00:26:35

cosworth
Replies: 2

I'm using PDFDocumentGDI and VCLCanvas calls to create the pdf. The last part I need is page numbers. Is there an easy way to add these, I saw on another post about GDIPages owning and calling PDFDocumentGDI, do you have an example of this?
I have been reading through the documentation and comments in your units and looked at the examples and reading through the Forum, but there's a lot to process and I'm on a tight timescale (aren't we always). any additional help/examples would be appreciated.

#5 Re: PDF Engine » adding rects to TGDIPages Headers » 2016-07-15 20:39:47

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?

#6 Re: PDF Engine » adding rects to TGDIPages Headers » 2016-07-15 20:33:45

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.

#8 Re: PDF Engine » Output to Printer » 2016-05-12 17:43:58

Hi, Thanks for the quick response, ok that all works fine, I have created the file. I haven't worked with Metafiles, I followed your link but that didn't help either. Do you have any other pointers or a bit more info to go. Thanks

#9 PDF Engine » adding rects to TGDIPages Headers » 2016-05-12 11:09:44

cosworth
Replies: 4

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

#10 PDF Engine » Output to Printer » 2016-05-12 11:03:59

cosworth
Replies: 2

Hi, I'm fairly new to the PDf Engine, I've been working with it for a couple of months. I'm using TPdfDocumentGDI and I'm trying to output directly to a a printer, I don't want a preview just print. Everything else I've managed to find and have my fairly complete pdf, just the printer out put. Thanks

Board footer

Powered by FluxBB