Scripting in reports

  •  05-06-2007, 9:03 PM

    Scripting in reports

    Hi,

    I have just started using Ontime and have been asked to make some changes to some reports.
    One of the changes is to change the padding inside a Richtextbox.

    I have tried to add the following code to the C# scipt for Detail_Format

     ((RichTextBox)rpt.Sections["GroupFooter4"].Controls["descriptionRichTextBox"]).Border.GetMargins();

    But when i run the report it returns the following error:

    Report Script Compile Error on line 73 Error = The type 'DataDynamics.ActiveReports.Border' is degined in an assembly that is not referenced. You must add a reference to assembly 'ActiveReports.Viewer, Version=XXXXX, Culture=XXXX, PublicKeyToken=XXXXX'.
    Report Script Compile Errpor on line 73 Error = 'DataDynamics.ActiveReports.Border' does not contain a definition for 'GetMargins'

    I then try to add the following to ActiveReport_ReportStart

     rpt.AddScriptReference("ActiveReports.Viewer.dll");

    But this returns the same error.

    Thanks in advance

    Jamie Edmonds

View Complete Thread

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software