Page 1 of 1
Generate .pdf from SQL Server
Posted: Tue Dec 21, 2010 6:35 am
by smart+
Hello,
does exist way for generating .pdf files from SQL Server stored procedure or Job?
If yes, where I can see some sample?
Or I must use external application for this?
Best regards,
Sasa
Generate .pdf from SQL Server
Posted: Tue Dec 21, 2010 7:36 am
by Alex K.
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Generate .pdf from SQL Server
Posted: Tue Dec 21, 2010 2:42 pm
by smart+
I must generate 150 .pdf reports each 2 hours from our ASP.NET application.
We use your Stimulsoft.Report component for ASP.NET.
My database is SQL Server and I can use SQL Server Agent for creating and scheduling Job for this interval of 2 hour.
In this scheduling Job I want execute stored procedure which generate 150 PDF reports with your component.
Does exist any way for doing this with stored procedure?
Generate .pdf from SQL Server
Posted: Wed Dec 22, 2010 4:36 am
by JorisWils
Maybe you could create a .NET Console app which takes a few parameters and generates the report?
Then you could call the executable from within your stored procedure.
Generate .pdf from SQL Server
Posted: Wed Dec 22, 2010 6:55 am
by smart+
JorisWils wrote:Maybe you could create a .NET Console app which takes a few parameters and generates the report?
Then you could call the executable from within your stored procedure.
I know for this solution and this is my backup solution if not exist simpler or better solution.
Second solution is creating SSIS package which call my web service which generate PDF reports.
For this package I can create Job in SQL Server and make scheduling.
I only ask if Stimul.Report have some other simpler solution?
Generate .pdf from SQL Server
Posted: Wed Dec 22, 2010 7:14 am
by Andrew
Hello,
The solution offered by JorisWils is the good one because we do not have import from PDF.
Thank you.
Generate .pdf from SQL Server
Posted: Wed Dec 22, 2010 7:42 am
by smart+
Andrew wrote:Hello,
The solution offered by JorisWils is the good one because we do not have import from PDF.
Thank you.
I use Stimulsoft.Report for web and with JorisWils solution how can I generate PDF in console application?
Generate .pdf from SQL Server
Posted: Thu Dec 23, 2010 7:10 am
by Alex K.
Hello,
You can create a simple console application that will connect to the database, execute the procedure, send the data to the report template, render them (without showing) and then export to a PDF file with the specified name and the specified path.
As another way you can implement these actions in your application.
Thank you.