SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


pdf generation in sql


pdf generation in sql

Author
Message
sarthakmajithia
sarthakmajithia
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 3
i have a simple table with 3 columns and 3 rows.
is it possible to generate a pdf document by directly firing query in SQL which contains the table and its contents?
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58779 Visits: 13297
You can use Reporting Services (SSRS) for that.
Just build a very simple report using a table.
Output the report to pdf and you're done.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
ShineBoy
ShineBoy
SSC Veteran
SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)

Group: General Forum Members
Points: 209 Visits: 159
I've made use of a CLR to do this, very fast, did pay about $US 300 for the DLL's but that paid for itself many times over. If you're keen on this I can dig around and get you more details. We use it to generate personalised legal contracts, at reasonable volumes. and never had a miss fire from the CLR so far, this process has been going about 5 months now, so seems quite reliable.

we're really just populating a contract that was composed in word and then really just converting/printing that to PDF.

Tell me if you are interested.
demonfox
demonfox
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2111 Visits: 1192
ShineBoy (1/16/2013)
I've made use of a CLR to do this, very fast, did pay about $US 300 for the DLL's but that paid for itself many times over. If you're keen on this I can dig around and get you more details. We use it to generate personalised legal contracts, at reasonable volumes. and never had a miss fire from the CLR so far, this process has been going about 5 months now, so seems quite reliable.

we're really just populating a contract that was composed in word and then really just converting/printing that to PDF.

Tell me if you are interested.


For word to pdf convertors , there are plenty of tools available ; or write a C# code to do that , the code is also available on internet.

Well, I think SSRS approach is well and good enough for this work ...or if BI tools are not available then download the report editor tool , it is free and I think does have functionality of exporting reports in pdf's.

~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one Ermm
derek.giles
derek.giles
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 8
Hi, we use ASPPdf from persits for this and it has worked very well. Rather than clr we use OA procedures.

Asppdf.com

Regards
ShineBoy
ShineBoy
SSC Veteran
SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)SSC Veteran (209 reputation)

Group: General Forum Members
Points: 209 Visits: 159
You're right plenty of Word to PDF convertors around. But most require Word installed on the machine. We had a need whereby the Compliance Officer would be able to alter the source contract (or template) easily, that really meant Word. BUT as we are generating the PDF off the server we did not want to install Word on it. The solution we used meant no Word installed on the server, just access to the Word file. We chose a CLR simply because most of the process is in TSQL and ease I guess.
itsmemegamind
itsmemegamind
Valued Member
Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)

Group: General Forum Members
Points: 50 Visits: 45
Follow the blog in servercentral

http://www.sqlservercentral.com/articles/Miscellaneous/creatingapdffromastoredprocedure/1104/

Also another useful link

http://www.codeproject.com/Articles/19236/Create-data-driven-PDF-on-the-fly-by-using-SQL-ser
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search