#1 2013-06-27 08:58:00

paulwh
Member
Registered: 2013-06-27
Posts: 1

Hyperlink with SQLite3Pages possible?

Is it possible to create a hyperlink to an external file or web address with SQLite3Pages
Ie.
with TGDIPages.Create(self) do
...
Thankyou in advance

Offline

#2 2013-06-27 09:09:49

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

Re: Hyperlink with SQLite3Pages possible?

Please ensure you got the latest version, from http://synopse.info/fossil/wiki?name=Get+the+source
The unit is now named mORMotReport.pas.

You can add hyperlinks and outlines, even with PDF support.
See http://blog.synopse.info/post/2011/02/0 … ngine-1.12
and bookmark support in mORMotReport.pas.

See for instance the sample 5 of mORMot:

      DrawTitle(edt1.Text,true);
      for i := 1 to 10 do
        DrawText('This is some text '+IntToStr(i));
      NewLine;
      DrawBMP(Bmp,maxInt,50,'Some bitmap in the report');
      AddBookMark('bookmarkname');
      WordWrapLeftCols := true;
      AddColumns([10,20,50]);
      AddColumnHeaders(['#','Two','Three'],true,true);
      for i := 1 to 100 do
        DrawTextAcrossCols([IntToStr(i),'Column '+IntToStr(i),'Some text here. '+s]);
      NewLine;
      DrawBMP(Bmp,maxInt,50,'Some bitmap in the report (twice)');
      DrawTitle('This is your text',false,0,'','bookmarkname');
      DrawText(mmo1.Text);

      EndDoc;

For http references, it will be identified within PDF content.
But for TGdiPages, it not available directly, AFAIK.

Offline

Board footer

Powered by FluxBB