You are not logged in.
Pages: 1
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);
Thanks Arnaud! Works perfect!
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.
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!
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?
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.
Pages: 1