Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
pdf generation in sql
pdf generation in sql
Rate Topic
Display Mode
Topic Options
Author
Message
sarthakmajithia
sarthakmajithia
Posted Tuesday, January 15, 2013 11:25 PM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, January 17, 2013 11:36 PM
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?
Post #1407621
Koen Verbeeck
Koen Verbeeck
Posted Wednesday, January 16, 2013 1:00 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 2:54 AM
Points: 9,409,
Visits: 6,494
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?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1407646
ShineBoy
ShineBoy
Posted Wednesday, January 16, 2013 2:46 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 10:21 PM
Points: 18,
Visits: 45
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.
Post #1407703
demonfox
demonfox
Posted Wednesday, January 16, 2013 3:23 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 11:52 PM
Points: 1,086,
Visits: 1,114
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
Post #1407720
derek.giles
derek.giles
Posted Thursday, January 17, 2013 6:12 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, April 29, 2013 10:25 AM
Points: 1,
Visits: 4
Hi, we use ASPPdf from persits for this and it has worked very well. Rather than clr we use OA procedures.
Asppdf.com
Regards
Post #1408377
ShineBoy
ShineBoy
Posted Thursday, January 17, 2013 1:14 PM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 10:21 PM
Points: 18,
Visits: 45
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.
Post #1408589
itsmemegamind
itsmemegamind
Posted Thursday, January 17, 2013 11:31 PM
Grasshopper
Group: General Forum Members
Last Login: Monday, February 04, 2013 12:43 AM
Points: 10,
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
Post #1408724
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.