#1 2012-10-17 17:36:53

delphi_prog
Member
Registered: 2012-06-21
Posts: 4

DrawText() and picture on same row and space between rows

I enter .bmp file and text in my pdf as follows:

Font.Name := 'Calibri';
Font.Size := 11;
Font.Style := [fsBold,fsItalic];
DrawText('PACKAGE NO');

Logo.Picture.LoadFromFile('logoCert.bmp');

1.
Every time i want to add something i get new row automatically even if i don't call it myself. And the space between rows depends on font size. Is there any way to make every space between different font rows the same?

2.
Is it possible to position my picture file on the same row with the text like this:

--------------
|text      ***  |
|text      ***  |
|text      ***  |
|text      ***  |
|           ***  |
|                  |
--------------

The frame is my paper layout and the dot rows represent one big picture. Hope thats clear enough for you guys smile.

Hope someone can help me.

Offline

#2 2012-10-17 17:42:35

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

Re: DrawText() and picture on same row and space between rows

There is no such columned layout possible directly with TGdiPages by now.

I see two possibilities of doing so:
- You can do it by hand, since you have the TCanvas available;
- You draw the picture on the right side, then change the right margin of your report, then add text, then set the right margin back to the original.

Offline

Board footer

Powered by FluxBB