Modify Preview
Hi there,
I am trying to update a report while the old report is still visible.
So far I have a listener on a memo, which runs the function. From there I can change the properties of the Sender and use Modify = True to update this object.
But I cannot update any other objects from that function.
JScript-Code:
Working with ShowReport would popup the dialogPage and show a white preview in the background.
So - can you help me on this one?
Btw. anyone else using JScript? If you have a Fastreport Documentation for JScript that might be helpful [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Best Kurt[/img]
I am trying to update a report while the old report is still visible.
So far I have a listener on a memo, which runs the function. From there I can change the properties of the Sender and use Modify = True to update this object.
But I cannot update any other objects from that function.
JScript-Code:
function memo1OnPreviewClick(Sender, Button, Shift, Modified)
{
      /**
        * getting the Object does not work                                                                                                                       Â
        */
      memoObject = Report.FindObject("memoForObject");
      memoObject.Font.Size = 28;                                             Â
     Â
      /**
        * Direkt adressing does not work                                                                         Â
        */
      memoForDirekt.Font.Size = 28;                                                             Â
     Â
      /**
        * Sender works great                                                                         Â
        */
      Sender.Font.Size = 28;
      // Run Updating
      Modified = True;           Â
}
Working with ShowReport would popup the dialogPage and show a white preview in the background.
So - can you help me on this one?
Btw. anyone else using JScript? If you have a Fastreport Documentation for JScript that might be helpful [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Best Kurt[/img]
Comments
You can found FS manual here: http://www.fast-report.com/pbc_download/fs_en.pdf
(btw. is there any way to close a topic, because your answer is what I was looking for?)