#1 2011-03-27 12:26:27

ebt25
Member
Registered: 2011-03-27
Posts: 3

taJustified with other fonts

Hi,

I tried to use taJustified property with the Calibri font but it didn't work. When I changed font to Arial, it works fine, is there any solution ?
And one more question: I tried to use 2 words with different font sizes in one line. What is the best way to do it ?

Andrew

Offline

#2 2011-03-27 13:10:27

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

Re: taJustified with other fonts

I tried the sample code (TestSQLite3Pages) with the Calibri font.
And it worked as expected by me.

What does "didn't work" mean?
This is not a very precise bug report. wink
Calibri + taJustified "didn't work" with SQLite3Pages report, or with PDF generation?

Did you get the latest source code from http://synopse.info/fossil ?

Offline

#3 2011-03-27 13:13:57

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

Re: taJustified with other fonts

About 2 words in different font sizes in one line, it's not handled directly.

For that, you could use a TRichEdit then print its content on the report via the corresponding method, or directly use the Canvas property.

Offline

#4 2011-03-27 16:54:31

ebt25
Member
Registered: 2011-03-27
Posts: 3

Re: taJustified with other fonts

ok it's working, richedit too.
one more question: how to select printer before printing ?

var
  printDialog : TPrintDialog;
  MyPrinter: TPrinter;
  TGDIP: TGDIPages;
...
      TGDIP := TGDIPages.Create(Form1);
...
      printDialog := TPrintDialog.Create(Form1);
      MyPrinter := Printer;
      if printDialog.Execute then
      begin

         PrintPages(1, 1);
      end;

Its working too smile

Last edited by ebt25 (2011-03-27 17:02:12)

Offline

Board footer

Powered by FluxBB