Generate CRYSTAL REPORT in PDF Format in Batch directly from SQL SERVER

Posted on 2005-04-08
Last Modified: 2006-11-18
Hi Experts

I need to generate some reports in batch during a nightly routine.  I have a crystal report template already built (.rpt).  Each night I want to have a SQL Stored Procedure fire off via a Job and create the report for each record in PDF format.  

I'm sure this can be done but I'm not sure how to Instantiate the Crystal Object, and then export a pdf doc.  In fact, I'm not even sure what the syntax would be however I do have experience calling various other objects via SQL Server

Any Help would be greatly appreciated.
Question by:lsrbby
    LVL 100

    Accepted Solution

    I don't believe you can do it directly from SQL.  However you probably can kickoff a VB application that could run the report.

    I don't think Crystal supports an interface like you need to databases only to their applications.

    LVL 100

    Expert Comment

    Glad i could help


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Creating and Managing Databases with phpMyAdmin in cPanel.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now