SSRS How to save Report as PDF format local on server - reporting-services

i like to use a report from sql reporting services (SSRS) to generate invoices. the front software builds the url to reporting web portal and to report "Invoice"
just like:
https://DOMAIN/Reports/report/Invoice?start=01.01.2022&end=31.12.2022&duedate=15.01.2023&date=19.01.2022&key=123456100000&customerId=123456&invoicenumber=22AR12345
The big goal is to store the user generated invoices as a single blob just in time on the same server in the database, after a trigger.
If the invoice would be stored on server i can grap and input it via stored procedure as blob into database.
I tried this, when i was on server per remote desktop, i can execute the report and saved it as pdf file on data directory, press company logo (the trigger), then another report opens which executes the stored procedure to import the file into db as single blob. this already works fine.
But how can this file saved on server if the user executes the report per URL?
Has anyone an idea? Is there another way?

Related

Is is possible to I sync data from MS access VB to mysql database

I got one project that customer need to sync data from Microsoft Access to mySQL on cloud server.
Now customer has form on Microsoft Access when they click save button, it will call function to save data to local database.
What they want to do is once customer click save button, t will call the same function and also send data to mysql on cloud server as well.
Anyone know how to do this or any idea how to solve this case.
Regards.

Importing data from a PDF form to a database

I have to do a project at work at the moment where data from received PDFs are supposed to be saved in a DB.
The process shoould look as follows:
Customer fills out PDF form
Form is sent as an attachment in XFDF-format via e-mail to our company
The received data gets imported into a MySQL database
This process is supposed to happen automatically.
By now my first approach was to save the attachment automatically in a dedicated folder with the help of VBA. Afterwards I would handle the newly created file and import the data into the DB (but I don't know how at the moment).
My question is if this is the right way and if so how can I programatically import the XFDF data into the MySQL DB? If this approach is too complicated or not possible in what ways should I alter the process?
Thank you in advance!

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.

SSRS Report ask for Credentials

I have report set up at reporting server. And from mvc.net through javascript. I am opening report using the code below:
function ShowSnapShot() {
window.open("http://ServerName/ReportingServerName/Pages/ReportViewer.aspx?%2fFolderName%2fSubFolderName%2fReportName&rs:Command=Render&Parameter=003532");
}
Whenever I open the report it asks for credentials. How could I pass Credentials with the url or is there any way I could open the report without using Report Viewer?
Ensure the user who is opening this report has Browse permissions to the report/folder on the report server.
Additionally, check the credentials on the Data Source used by the report. You may need to select Credentials stored securely in the report server.

SSRS report subscriptions cannot be created

I am not able to create subscriptions for SSRS reports as it gives the following error:
Subscriptions cannot be created because the credentials used to run
the report are not stored, or if a linked report, the link is no
longer valid.
My set up is as following:
ServerA - Database Server
ServerB - Report Server
MachineC - Internet explorer to view the reports
So I am viewing reports on Machine C, IE, and ServerB connects to ServerA for Datasource.
The problem sounds like the report expects the user to provide credentials when it is viewed. When you create a subscription, it does not have the credentials to execute the report.
Go to the report, click the properties tab, then choose Data Sources in the left pane.
Are you using a shared data source? Is it using Windows integrated security? If so, can you change it to use a service account made just to run these reports? You may need to view these properties by viewing the data source itself.
If it is a custom data source is the option "Credentials supplied by the user running the report" selected? If so, can you change it to "Credentials stored securely in the report server"?
Either way, if you want to set up a subscription, I have made it work by providing credentials in the data source rather than have the user input them.
If you are worried about security, I would suggest managing that on the report level rather than the data source level.
What the error does not make clear is, in order to be able to subscribe to a report not only must the data source be set to "Credentials stored securely in the report server" you must also not select the option "Impersonate the authenticated user after a connection has been made to the data source".
The way I did was to create a new data source in the report builder and explicitly provided the username and password there to be used.
Then, used that username password with the new data source with the report and voila it worked.
I faced same issue as you, and i found its solution, as #richard said already that it is related to credential of data source you use for your deployed report.
To resolve it Follow these steps:
1. Right click on your shared Data source which you use in your deployed report.
2. Click On Edit Button.
3. a new window will open click on Credential from left pane, Select Use this user name and password then click ok.
4. Check on Save these credential option you get on to previous screen.
5. Test connection and if succeed click ok and deploy your project on report server.
For reference plese look at screen shot given below:
Thanks.