add, change or remove the background picture

edited 1:45AM in FastReport 3.0
I have Fast Report 3.03 and I tested blow instruction and Delphi show flowing error massage.
Please help me I change from code, programmatically add, change or remove the background picture of my report.

Instruction:
TfrxReportPage(frxReport1.Pages[1]).BackPicture.Assign('D:\Scard\Pictures\abbasi.jpg');

Error message:
[Error] Unit1.pas(394): Incompatible types: 'TPersistent' and 'String'
[Fatal Error] pdbAppl.dpr(12): Could not compile used unit 'Unit1.pas'

Comments

  • edited 1:45AM
    Try to create a TBitmap and then, load the picture to it... So you can use assign to the TBitmap...

    regards.

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.