ReportBuilder in an NT Service App
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
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
This discussion has been closed.
Comments
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
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
OK, thanks guys, I'll update my version to 7 here pretty soon. Hopefully
that will do the trick.