Wednesday, March 7, 2012

Custom Delivery Extension

Hi,
I have successfully created a custom data renderer(report to form) and a
data extension.
I need to create a custom delivery extension that will check if the reports
is returning data before delivering it.
Any pointers.....
Thanks
MandarUnfortunately the delivery extension API doesn't expose any mechanism for
knowing if the report contained data or not. The only work around is to use
data driven subscriptions such that the query for the subscription returns
no rows if the report will have no data.
If the delivery extension does not have to be generic, it could be written
to have knowledge of the reports and do some checking on its own.
This feature has been requested a lot and is on the list for consideration
for a future release.
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"IB Ghost" <ibghost@.hotmail.com> wrote in message
news:uD2hhfwSFHA.3312@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have successfully created a custom data renderer(report to form) and a
> data extension.
> I need to create a custom delivery extension that will check if the
> reports
> is returning data before delivering it.
> Any pointers.....
> Thanks
> Mandar
>
>
>|||Hi Daniel,
Thanks for your response.
I have installed the PrinterDeliveryExtension sample.
The Webserver/ReportServer & SQL Server are installed on the same machine.
I am using RS SP2 and am able to use the print functionality in the
ReportViewer.
I tried adding the printer name in the RSWebApplication.config file &
RSReportServer.config under the Delivery tag.
The printer is a network printer installed in another machine & I had given
the path as "\\anothermachinename\printername".
This was giving me an error while setting up the subscription itself, saying
printer not found.
I have modified the code in the PrinterDeliveryProvider.vb file,
function-SetConfiguration().
Here instead of reading the printer names from the config files, I am using
the PrintDocument object to pick up all the printers on the network
programmatically.
I can see the list of all the printers on the network on the subscription
page in the "Select Printer" dropdown, and can now create the subscription.
But when the subscription runs the status says "The printer
\\anothermachinename\printername is not currently
installed on the server."
Any ideas on this.
Regards
Mandar Pai
mandarp@.infobahnlimited.com; mandarpai@.hotmail.com
"Daniel Reib (MSFT)" <danreib@.online.microsoft.com> wrote in message
news:ud5tZ55SFHA.2172@.tk2msftngp13.phx.gbl...
> Unfortunately the delivery extension API doesn't expose any mechanism for
> knowing if the report contained data or not. The only work around is to
use
> data driven subscriptions such that the query for the subscription returns
> no rows if the report will have no data.
> If the delivery extension does not have to be generic, it could be written
> to have knowledge of the reports and do some checking on its own.
> This feature has been requested a lot and is on the list for consideration
> for a future release.
>
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> "IB Ghost" <ibghost@.hotmail.com> wrote in message
> news:uD2hhfwSFHA.3312@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > I have successfully created a custom data renderer(report to form) and a
> > data extension.
> >
> > I need to create a custom delivery extension that will check if the
> > reports
> > is returning data before delivering it.
> >
> > Any pointers.....
> >
> > Thanks
> >
> > Mandar
> >
> >
> >
> >
> >
> >
>|||This is just a guess, but when the subscription runs it runs as the service
user. Perhaps this user does not have permission to see the network
printer. Try giving them permission.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"IB Ghost" <ibghost@.hotmail.com> wrote in message
news:%23QU7%23F8SFHA.2560@.TK2MSFTNGP10.phx.gbl...
> Hi Daniel,
> Thanks for your response.
> I have installed the PrinterDeliveryExtension sample.
> The Webserver/ReportServer & SQL Server are installed on the same machine.
> I am using RS SP2 and am able to use the print functionality in the
> ReportViewer.
> I tried adding the printer name in the RSWebApplication.config file &
> RSReportServer.config under the Delivery tag.
> The printer is a network printer installed in another machine & I had
> given
> the path as "\\anothermachinename\printername".
> This was giving me an error while setting up the subscription itself,
> saying
> printer not found.
> I have modified the code in the PrinterDeliveryProvider.vb file,
> function-SetConfiguration().
> Here instead of reading the printer names from the config files, I am
> using
> the PrintDocument object to pick up all the printers on the network
> programmatically.
> I can see the list of all the printers on the network on the subscription
> page in the "Select Printer" dropdown, and can now create the
> subscription.
> But when the subscription runs the status says "The printer
> \\anothermachinename\printername is not currently
> installed on the server."
>
> Any ideas on this.
> Regards
> Mandar Pai
> mandarp@.infobahnlimited.com; mandarpai@.hotmail.com
> "Daniel Reib (MSFT)" <danreib@.online.microsoft.com> wrote in message
> news:ud5tZ55SFHA.2172@.tk2msftngp13.phx.gbl...
>> Unfortunately the delivery extension API doesn't expose any mechanism for
>> knowing if the report contained data or not. The only work around is to
> use
>> data driven subscriptions such that the query for the subscription
>> returns
>> no rows if the report will have no data.
>> If the delivery extension does not have to be generic, it could be
>> written
>> to have knowledge of the reports and do some checking on its own.
>> This feature has been requested a lot and is on the list for
>> consideration
>> for a future release.
>>
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>>
>> "IB Ghost" <ibghost@.hotmail.com> wrote in message
>> news:uD2hhfwSFHA.3312@.TK2MSFTNGP12.phx.gbl...
>> > Hi,
>> >
>> > I have successfully created a custom data renderer(report to form) and
>> > a
>> > data extension.
>> >
>> > I need to create a custom delivery extension that will check if the
>> > reports
>> > is returning data before delivering it.
>> >
>> > Any pointers.....
>> >
>> > Thanks
>> >
>> > Mandar
>> >
>> >
>> >
>> >
>> >
>> >
>>
>

No comments:

Post a Comment