Printing BLOBs / RichView

Hi there,

I'm evaluating FastReport and really like the "open-minded" architecture of this module!

I've got some small questions:

Printing BLOB-Fields:
=====================

When printing a BLOB field, it's required to prepare the blob-data depending on the
type of the content.

We use for example a thirdparty RichText module (called RichView btw) and store
the content into a BLOB-File.

I'd like to print this in a fast reports field.
How can I do that? Best approach? :-)

Thanks a lot & keep it up guys, great work! ;)

Daniel

Comments

  • edited 3:00PM
    FR3.0 does not support TRichView. However, you can print it as an image. To do this, place empty "Picture" object in the report. In the TfrxReport.OnBeforePrint do the following:

    if View.Name = 'Picture1' then
    begin
    // load the blob and assign it to the TRichView
    // draw it on any bmp surface
    // assign the bmp to the Picture1
    TfrxPictureView(View).Picture.Assign(your_bmp)
    end;
  • edited 3:00PM
    AlexTZ wrote:
    However, you can print it as an image.
    sounds good, I'll check it out!

    Thanks a lot!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.