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:
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

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.