Welcome to the Axosoft Community, Sign in | Register | Help
in Search

Scripting in reports

Last post 11-01-2007, 3:44 PM by Dragan. 9 replies.
Sort Posts: Previous Next
  •  05-06-2007, 9:03 PM 11523

    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

  •  05-08-2007, 10:04 AM 11549 in reply to 11523

    Re: Scripting in reports

    I was able to confirm with my dev team that we don't allow access to the assembly that you are trying to modify in the reports of OnTime. I have submitted a feature request to have the ability to change the padding inside a richtextbox in the reports as a possible enhancement of OnTime in the near future.

    Thank you,


    Dragan Marceta
    www.Axosoft.com
    Filed under:
  •  05-08-2007, 5:00 PM 11559 in reply to 11549

    Re: Scripting in reports

    Hello Dragan,

    Rather than adding a feature for padding in a RichTextBox, wouldn't it be better to allow access to the assembly ?

    The ActiveReports system is very powerful, but without access to this assembly a lot of the functionality in ActiveReports cannot be used. This is perhaps one reason that so many people seem to us 3rd Party tools for reporting from OnTime.

    Regards,

    Brian Raynor

  •  05-08-2007, 5:09 PM 11560 in reply to 11559

    Re: Scripting in reports

    Hello Brian,

    Sounds good. I will update the feature request to reflect on giving access to the assembly instead.  

    Thank you, 


    Dragan Marceta
    www.Axosoft.com
  •  10-25-2007, 7:33 PM 13609 in reply to 11560

    Re: Scripting in reports

    Hello Axosoft,

    Has this issue been addressed in OnTime v8 ?

    ActiveReports is a very powerful reporting system but we gave up using it because we couldn't determine which features of ActiveReports were supported in OnTime and which were not. It was very frustrating to spend time trying to resolve a problem in our code, only to eventually discover our code didn't have a problem, but that a function of ActiveReports we wanted to use wasn't supported.

    It would be ideal if Axosoft could implement ActiveReports "as fully as possible", and then provide a list of functions that are not supported.

    Regards,

    Brian Raynor 

     

  •  10-31-2007, 6:08 AM 13657 in reply to 13609

    Re: Scripting in reports

    Hello Brian,

    As far as I was able to find, OnTime doesn't limit or restrict any functions in ActiveReports, but perhaps if you could describe in more detail the features you see are lacking we can take a closer look.

    What features of ActiveReports are you referring to in particular? What functionality have you found lacking within the Report Designer?


     


    Thank you,

    Tom Harder
    Axosoft Support
    support@axosoft.com
    1.800.653.0024 option 3
    --'Fear the Bug' Podcast--
  •  10-31-2007, 6:33 AM 13659 in reply to 13657

    Re: Scripting in reports
    Check the rest of this thread
  •  10-31-2007, 6:50 AM 13660 in reply to 13659

    Re: Scripting in reports

    Hello Brian,

    I spoke with our head developer regarding this thread, and he explained that we use the full features of ActiveReports, and he and I were both curious as to the specific limitations you are currently seeing. I see that previously you only mention the RichTextBox padding- is this the only limitation you've found, or are there others?

    If not, let us know which other limitations you're experiencing so we can provide you with a complete answer.

    If that assembly you mention is the only one you've found that isn't accessible, let us know so we can look exclusively at that one.


    Thank you,

    Tom Harder
    Axosoft Support
    support@axosoft.com
    1.800.653.0024 option 3
    --'Fear the Bug' Podcast--
  •  10-31-2007, 7:03 AM 13662 in reply to 13660

    Re: Scripting in reports

    This was the only example that we fully investigated and determined the cause. We had some other similar issues, assumed it was a similar cause, and gave up.

    I don't know much about the reporting system, so I can't point out what needs to be done. I assume the ActiveReports documentation would specify all of the assemblies required.

    Is it your understanding that OnTime includes all required assemblies (and other components?) to provide full functions and operation of all object methods and properties ?

  •  11-01-2007, 3:44 PM 13695 in reply to 13662

    Re: Scripting in reports

    The behavior that you are seeing is default behavior of the active reports component in the application. We have not enhanced or limited any additional functionalities or assemblies of the active reports component in our OnTime application at this time. If you feel that a certain function or assembly is needed in the application, you are more than welcomed to submit a possible feature request from within our community.axosoft.com site under the “Requested Features” section.

    Thank you,


    Dragan Marceta
    www.Axosoft.com
    Filed under:
View as RSS news feed in XML

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