Can SQL Reporting services email a pdf? - sql-server-2008

I currently use www.discountasp.net for my web hosting. When a customer places an order I want to find a way that I can get a pdf version of the invoice to my local machine. The reason I want to do this is that I'd like to have a schedule task on my local machine that grabs all orders from the day at a specified time and print the pdf documents off ready for me to pack the goods. At the very worst I'd like to have them as attachments to emails sent to my machine.
I can see that SQL reporting can export to pdf so I'm assuming I can somehow pass an order id to a page that calls the SQL report to generate the invoice and send me the file. The other option is to store the invoice on the server and I'll create a script that logs in, copies it down, then clears it off. I've had 'slight' exposure to working with SQL Reports before but nothing along this line.
Has anyone got any experience with something like this that would know and possibly specific experience with it being hosted on discountasp.net to let me know if it's possible? Could you give me some advice on what to do or how to do it to solve my issue?

Yes it can.
Reporting Services includes an e-mail
delivery extension that provides a way
to e-mail a report to individual users
or groups. The e-mail delivery
extension is configured through the
Reporting Services Configuration tool
and by editing the Reporting Services
configuration files.
E-Mail Delivery in Reporting Services

Related

SSRS data drive subscription with multiple formats?

Is it possible to send multiple types of auto emails such as MHTML and PDF? I only see 1 option to select from so i was just wondering. Since our SSRS server is internally hosted the person being emailed can not go to the report directly to download their preference.
If you have enterprise version, then you can use Data driven subscription and have a single subscription deliver in whatever format you want it to.
You don't need multiple subscriptions

How do I update my web app's database when a change is made on QuickBooks Online?

I have a web app with a MySQL database we maintain in the cloud that we are trying to integrate with our QuickBooks Online account. We want to sync data between or web app's database and QuickBooks online, such as customer names and addresses. If they update their address in or web app, it's easy to then update it in QuickBooks online using the QuickBooks Online API. However, if they tell us their new address over the phone and we change it directly in QuickBooks online, we have no idea how to have that trigger something so that it automatically updates our MySQL web app. How do we go about doing this or learning about this process?
Intuit/QuickBooks has an API that's specifically geared towards this use-case. From the docs:
The change data capture (CDC) operation returns a list of entities that have changed since a specified time. This operation is for an app that periodically polls Data Services and then refreshes its local copy of entity data.
Docs are here:
https://developer.intuit.com/docs/0100_accounting/0300_developer_guides/change_data_capture
Basically you make an OAuth signed HTTP GET request like this:
https://quickbooks.api.intuit.com/v3/company/1234/cdc?entities=Class,Item,Invoice&changedSince=2012-07-20T22:25:51-07:00
And you get back a list of objects that have changed since the given date/time.
Your application can remember the last time you called this, and periodically call this API to get things that have changed since the last time you called it.
You get back something like this:
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2013-04-03T10:36:19.393Z">
<CDCResponse>
<QueryResponse>
<Customer>...
</Customer>
<Customer>...
</Customer>
</QueryResponse>
<QueryResponse>
<Invoice>...
</Invoice>
<Invoice>...
</Invoice>
</QueryResponse>
</CDCResponse>
</IntuitResponse>

How to introduce a report subscription through report deployment? SSRS 2008 subscription

I want to be able to deploy a report and this deploy should take care of the an email subscription and set the report run schedule; I shouldn't have to manually create a subscription later on and if a new subscription is to be applied, I should be able to update the subscription with report deploy only. If somebody could provide a generic subscription element template to copy and paste in the rdl file, will be a great help.
Subscriptions are not part of the RDL file.
There is no way you can do what you want if you want it to deploy using right-click:deploy.
If you are using some automated process for deployment (rs.exe, SSRS webservice etc), you can set up subscriptions, but it would be a lot of work
From everything I have found, I do not see how you can create a subscription. I have found a lot on altering an existing subscription though:
https://msdn.microsoft.com/en-us/library/dn747196.aspx#bkmk_how_to
No instruction of rCREATING via PS, only mods:
https://msdn.microsoft.com/en-us/library/ms156307(v=sql.130).aspx
you may be able to create the subscription ion a STAGE environment then transfer it to Prod as part of your post deployment

SQL Server Reporting Services 2008 (SSRS) - Abonnement/Subscription: No Content/No E-Mail

I'm working on a "SQL Server Reporting Services 2008" server. I have a report which contains content every 2-7 days. I have an abonnoment, which is sending me this report every night via E-Mail. This is very annoying, when there is no content within the attached file.
Is there any way, how to don't send the subscribed Mail, when there is no content?
I found this link, but I guess this is just included in SSRS2008R2, but not in SSRS2008.
Any help or ideas?
Thanks!
if you have enterprise edition, you can use data driven subscriptions. you just change the view behind the data driven subscription to not return any rows if there is no data.
if you don't have enterprise edition, you should remove the schedule in SSRS report manager (set it to run once) and then trigger the subscription using the Reportserver.dbo.AddEvent procedure.
You call this procedure with the subscription id and it will execute this subscription. you have to write some code that determines if there is data in this report and calls the addevent procedure if there is.

Process mailbody with SSIS

I'm working on a SSIS project that mainly fetches data from an oracle DB and puts it in excel sheets, with some logging and email-sending etc.
Situation now: comments are emailed daily and manually copy pasted from outlook into the excel files (oldskool)
Now, we'd like to fetch the (whole) <'body'> of the emails and insert that in excel via SSIS.
2 questions arise:
-- How to fetch the mail itself (fetch it from the exchange? create a process that saves the mail as a html/text file after receiving)
-- How to 'read' the body of the email (I already found some info on this, less of a problem, via a C# script task read the body tag)
Thanks in advance for any input!
You have to use 3rd party components to read messages from Exchange.
It's better to try Script Task to access Exchange (take a look at this question). This way You can access exchange mailbox and put subject, from, to, cc, bcc and body in separate columns in pipeline. Don't forget that connecting to Exchange requires windows account and that way your package must be run by user who owns mailbox. Or You can impersonate him in Script Task.
Since this is quite a task, U guess it would be better to create simple application that will read mails and store them in database so You can retrieve them easily with SSIS.