#1 PDF Engine » Wordwrap Column Header » 2018-03-09 17:18:47

realsofo
Replies: 0

Please help me with a solution for bellow subjects:

- I would like to wordwrap the text from table header. I've tried to split the text with #13#10 but it doens't work (this is the main issue from this thread)
- I would like to add some space between rows from table
- I would like to add some space after table header
- I would like to change the color of row line to black

       
       WordWrapLeftCols:= True;
       AddColumns([3,14,30,7,8,10,10,10]);

       SetColumnAlign(3,caRight);
       SetColumnAlign(4,caRight);
       SetColumnAlign(5,caRight);
       SetColumnAlign(6,caRight);
       SetColumnAlign(7,caRight);

       //SetColumnBold(7);

       AddColumnHeaders(['#',
         'Article',
         'Description',
         'Price',
         'Qty.',
         'Total price',
         'Discount',
         'Total price' + #13#10 + 'with discount'],True,True,0); //--> here I would like to wordwrap the "Total price with discount" text

       for i := 1 to 25 do
         begin
         DrawTextAcrossCols([IntToStr(i),
            '3344574',
            'Some description here, range 0-100 mm' + #13#10 + 'Delivery: 2-3 weeks',  //--> this works well
            '2.000 €',
            '1',
            '2.000 €',
            '10%',
            '1.800 €']);
         //DrawLine;
         end;

       TextAlign:= taRight;
       Font.Size:= 14;
       Font.Style:= [fsBold];
       DrawTextAt('TOTAL',RightMarginPos - 50);
       DrawTextAt('1.800 €',RightMarginPos);

Sample here

#3 PDF Engine » Pdf with multiple columns under header » 2018-03-04 15:02:13

realsofo
Replies: 2

I would like to generate a PDF file by using TGDIPages method and having multiple columns under header.
In fact I would like to add also a logo picture under header.


Something like:


[HEADER HERE]
Quotation                                 [Some logo here]              My company name   
No. QUO-10 / 04.03.2018                                                   Street name, No. 3
Customer: Microsoft                                                          Country
____________________________________________________________________________


[CONTENT HERE]
| Pos   |  Description                                            |
| 1      |  Product description with multiple rows        |
| 2      |  Product description with multiple rows        |

____________________________________________________________________________

[FOOTER HERE]
Software name                                                                                 page 1/2



With TPdfDocumentGDI it's easy to arrange the text on canvas, but with this method I had difficulties with calculation of pagination.

Please some suggestions.

#4 Re: PDF Engine » PDF not generated on a fresh installed Windows » 2018-03-04 14:35:12

It's working also on a fresh system. It seems that it was a problem with access to the folder where the report was created.

I just generate a simple PDF file now, I save it in `temp` folder and it's working. It's working also without a printer installed.

Thanks!

#5 Re: PDF Engine » PDF not generated on a fresh installed Windows » 2018-02-22 19:04:29

I just installed a printer... some drivers offered by windows and is still doesn't work.
Physically this printer desn't exist, just some drivers.

Could it be this Microsoft Visual C++ Redistributable or maybe Microsoft .Net Framework?

#6 PDF Engine » PDF not generated on a fresh installed Windows » 2018-02-21 04:00:57

realsofo
Replies: 4

What are the system requirements for creation of a PDF file?
I'm asking this because I've seen that on a fresh installed Windows 7 x64 my application does not generating the pdf file.

On my developer computer the application work properly and it's generating well the pdf files.
In order to see if is required to have Adobe Reader, I even uninstall this application and still working.

Board footer

Powered by FluxBB