Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ReportBuilder in an NT Service App

edited February 2003 in General
Is this even possible? If I try to access a form with ReportBuilder
components on it, it blows up with an access violation immediately. We're
attempting to email reports to different people within our company and we've
gotten the application to work just fine, but we can't leave our server
logged on all the time, so I'm attempting to move this code to a service.
I've
written NT services before, so I'm familiar with how to do that, but I can't
figure out
how to do it with ReportBuilder involved. I appreciate any
answers/suggestions.

Thanks in advance

Comments

  • edited February 2003
    Yes, I believe so. Be sure that the report builder is fully invisible--ie
    doesn't try to show a dialog. Catch all the exceptoins as well. You may want
    to start out by allowing the service to interact with the desktop for early
    development. Tools such as CodeSite make it a lot easier as well.

    Enjoy

    Ed Dressel
    Team DM
  • edited February 2003

    RB Server Edition executes reports within the context of an NT Service.

    RB 7 is the first version of RB to be thread-safe. You should update to RB
    if you are using a prior release.

    RB Server supports reports on forms and reports on datamodules. I can tell
    you that supporting forms was extremely difficult. I recommend that you use
    datamodules for the reports. DataModules are non-visible containers,
    therefore they are designed to work in threads.

    As Ed suggested, make sure that you set Report.ShowAutoSearchDialog,
    ShowCancelDialog, and ShowPrintDialog to false.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2003

    OK, thanks guys, I'll update my version to 7 here pretty soon. Hopefully
    that will do the trick.
  • edited March 2003
    Yep, that was what I needed. Thanks so much!!!
This discussion has been closed.