Showing posts with label email. Show all posts
Showing posts with label email. Show all posts

Thursday, March 22, 2012

Custom Subscription Page

I have developed a custom subscription page that integrates with Active
Directory to allow searching for company employees and resolving their email
addresses. While I could certainly build a complete "My subscription" Site I
would like to just change the link to "New Subscription" on the Report
Subscriptions Tab and the My Subscriptions Page. Can this be done?
Thanks
JasonHello Jason,
You need to use the Javascript to search the source HTML code and modify the onclick event.
Currently, the NewSubscription button is like this:
<td valign="middle"><span id="ui_btnCreateSubscription"><table
id="ui_btnCreateSubscriptionTable" width="100%" class="msrs-buttonHeaderButton"
cellpadding="0" cellspacing="0" TITLE="New Subscription"
onclick="window.location='/Reports/Pages/SubscriptionProperties.aspx?CreateNew=True
\u0026IsDataDriven=False\u0026ItemPath=%2fSnapshot%2fAcceptedPostAll_snp
\u0026RedirectUrl=http%3a%2f%2flocalhost%2fReports%2fPages%2fReport.aspx%3fItemPath%
3d%252fSnapshot%252fAcceptedPostAll_snp%26SelectedTabId%3dSubscriptionsTab';"
onmouseover="document.getElementById('ui_btnCreateSubscriptionTable').className='msrs-
buttonHeaderButtonHover';" onmouseout="document.getElementById
('ui_btnCreateSubscriptionTable').className='msrs-buttonHeaderButton';">
You may use the javascript to find the TITLE new subscription and modify the onclick event.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Thanks Wei Lu,
I'm not sure how to do that with a page I have no access to the source. Do
you have any pointers on how I would place some javascript into a page that
just contains a reference to the ReportManager assemblies'
I will do some research but any pointers would be great... :)
Thanks
Jason
"Wei Lu [MSFT]" wrote:
> Hello Jason,
> You need to use the Javascript to search the source HTML code and modify the onclick event.
> Currently, the NewSubscription button is like this:
> <td valign="middle"><span id="ui_btnCreateSubscription"><table
> id="ui_btnCreateSubscriptionTable" width="100%" class="msrs-buttonHeaderButton"
> cellpadding="0" cellspacing="0" TITLE="New Subscription"
> onclick="window.location='/Reports/Pages/SubscriptionProperties.aspx?CreateNew=True
> \u0026IsDataDriven=False\u0026ItemPath=%2fSnapshot%2fAcceptedPostAll_snp
> \u0026RedirectUrl=http%3a%2f%2flocalhost%2fReports%2fPages%2fReport.aspx%3fItemPath%
> 3d%252fSnapshot%252fAcceptedPostAll_snp%26SelectedTabId%3dSubscriptionsTab';"
> onmouseover="document.getElementById('ui_btnCreateSubscriptionTable').className='msrs-
> buttonHeaderButtonHover';" onmouseout="document.getElementById
> ('ui_btnCreateSubscriptionTable').className='msrs-buttonHeaderButton';">
> You may use the javascript to find the TITLE new subscription and modify the onclick event.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>|||Hello Jason,
You could add the following into the aspx page in the ReportManager folder.
For example, I modify the Folder.aspx page in the C:\Program Files\Microsoft SQL Server\MSSQL.3
\Reporting Services\ReportManager\Pages folder.
--
<%@. Page language="c#" Codebehind="Folder.aspx.cs" AutoEventWireup="false"
Inherits="Microsoft.ReportingServices.UI.FolderPage" EnableEventValidation="false" %>
<%@. Register TagPrefix="MSRS" Namespace="Microsoft.ReportingServices.UI"
Assembly="ReportingServicesWebUserInterface" %>
<Script scr="Javascript">
function init()
{
alert("Hello");
}
if (document.all){
window.attachEvent('onload',init)
}
else{
window.addEventListener('load',init,false);
}
</Script>
--
This will prompt a dialogbox. You could modify the init() function to search and modify the text you
want show for the button.
Hope this helps.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Thanks for asking.. :)
Unfortunately I've been dealing with a bunch of Production issues and have
not been able to check out your code suggestion.. I finally found a document
I was looking for in MSDN magazine by Dino Esposito where he writes a page
handler that intercepts the existing page handler without any of the original
code. When I get some time I'm going to try both options to see which is the
cleanest. :)
Again, Thanks for your help.. :)
"Wei Lu [MSFT]" wrote:
> Hi ,
> How is everything going? Please feel free to let me know if you need any
> assistance.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>|||Hello Jason,
I would like to know which MSDN magazin article you read.
You could go back anytime when you are free to let me know the result. Thank you!
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.

Wednesday, March 7, 2012

Custom Delivery Extension

Hello Everyone,
I'm in the process of creating a custom delivery extension that will
write to a file share and then email users that the file is available.
I have used the custom printing extension sample as the basis for
creating my FileShareEmail extension.
I think my question is unlike most posted here in that, I have gotten
all the config files to work. So far I have set up a few parameters
(email address to and from). I then send an email with smtp.
I successfully receive the email and I created the notification.Status
= "Status: Email Sent.". This is what i see in the log file:
ReportingServicesService!notification!3ffc!11/02/2005-09:42:06::
Notification 7493a45c-2f0b-431c-bb53-592a99a5977c completed. Success:
False, Status: Email Sent., DeliveryExtension: File Share Email,
Report: 01 - Standard Listing Report, Attempt 1
There are no exceptions and the email was sent. The Report Manager
still has Done: 1 processed of 1 total; 1 errors. in the status column.
I cannot figure out why there was an error generated. Is there a
property that i forgot to set?
Another question I have is: I can see my custom extension in data
driven subscriptions but not in the regular subscriptions. Is this by
design or am I missing a config.
Resources question: I've looked quite a few places for some more
examples (other than the printer example), does anyone know some good
blogs or sites that have some different samples implemented?
The fourth and final question: Since I am trying to replicate some of
the existing functionality of RS, is there a way to send the email
through RS instead of coding my own error checking and such into my
extension?
Thanks for your help!
Regards,
DanI figured out one of the 4 questions. My Deliver() method was
returning the wrong boolean value (i.e. true when failed and false when
succeeded).