Generate .pdf from SQL Server

Stimulsoft Reports.NET discussion
Post Reply
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

Generate .pdf from SQL Server

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Generate .pdf from SQL Server

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

Generate .pdf from SQL Server

Post 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?
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Generate .pdf from SQL Server

Post 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.
Using Stimulsoft since 2007
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

Generate .pdf from SQL Server

Post 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?
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Generate .pdf from SQL Server

Post by Andrew »

Hello,

The solution offered by JorisWils is the good one because we do not have import from PDF.

Thank you.
smart+
Posts: 26
Joined: Thu Sep 09, 2010 4:53 pm
Location: Croatia

Generate .pdf from SQL Server

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Generate .pdf from SQL Server

Post 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.
Post Reply