#1 2011-08-23 17:16:40

AndreSoft
Member
Registered: 2011-08-23
Posts: 2

HTML and line break Text is possible?

Hello

1. ) It is possible to create a PDF using the commands HTML?
2.) In a large text, there is a command with automatic line break

Offline

#2 2011-08-24 07:32:29

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

Re: HTML and line break Text is possible?

1) You can try to use our THtmlView-based version - not finished work.
See http://synopse.info/forum/viewtopic.php?id=56

2) Use the TGDIPages report class as available in SQLite3Pages.pas
See http://synopse.info/forum/viewtopic.php?id=41
and http://synopse.info/forum/viewtopic.php?id=76
and http://synopse.info/forum/viewtopic.php?id=402

Offline

#3 2011-08-25 05:01:39

AndreSoft
Member
Registered: 2011-08-23
Posts: 2

Re: HTML and line break Text is possible?

Thanks for the links. Excellent work. I'm from Brazil and my English is not very good.

I tested the example richedit and it worked great. I was making some changes and when I remove the following piece of code

     DrawTitle ('Rich Edit Content', true);

The header is broken when the pdf form. I used the following code

     DrawTitle ('', false);

but is an extra space at the beginning of the document. Do you have any way to remove that piece of code without breaking the header

thanks

Offline

#4 2011-08-25 10:12:03

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

Re: HTML and line break Text is possible?

AddHalfLine should do the trick.

Offline

Board footer

Powered by FluxBB