Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How To Generate a PDF File Using Crystal Reports

How To Generate a PDF File Using Crystal Reports

Scheduled Pinned Locked Moved The Lounge
csharpasp-netwinformssysadmintools
23 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diverbw
    wrote on last edited by
    #1

    I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

    N R A S P 6 Replies Last reply
    0
    • D diverbw

      I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      First learn to read, this is the wrong place to ask such as question. Secondly, you'll find it easier to carve each individual report in granite then to generate them with that crock.


      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

      D B 2 Replies Last reply
      0
      • N Nagy Vilmos

        First learn to read, this is the wrong place to ask such as question. Secondly, you'll find it easier to carve each individual report in granite then to generate them with that crock.


        Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

        D Offline
        D Offline
        diverbw
        wrote on last edited by
        #3

        Thank you Nagy for that very hostile, condescending comment. Jerk!

        A N 2 Replies Last reply
        0
        • D diverbw

          I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

          R Offline
          R Offline
          RC_Sebastien_C
          wrote on last edited by
          #4

          diverbw wrote:

          I am a newbie to Crystal Reports

          Here's a pointer: Stay away while you can!

          D 1 Reply Last reply
          0
          • D diverbw

            Thank you Nagy for that very hostile, condescending comment. Jerk!

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5

            Hostile, condescending, humorous, and correct. :rolleyes:

            Somebody in an online forum wrote:

            INTJs never really joke. They make a point. The joke is just a gift wrapper.

            1 Reply Last reply
            0
            • D diverbw

              I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

              A Offline
              A Offline
              AspDotNetDev
              wrote on last edited by
              #6

              http://www.codeproject.com/Questions/ask.aspx

              Somebody in an online forum wrote:

              INTJs never really joke. They make a point. The joke is just a gift wrapper.

              1 Reply Last reply
              0
              • D diverbw

                I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

                S Offline
                S Offline
                Smithers Jones
                wrote on last edited by
                #7

                You broke rule 2[^].

                "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

                N 1 Reply Last reply
                0
                • D diverbw

                  Thank you Nagy for that very hostile, condescending comment. Jerk!

                  N Offline
                  N Offline
                  Nagy Vilmos
                  wrote on last edited by
                  #8

                  I'm not the one who can't read. Do you think "Please do not post programming questions here." doesn't apply to you? I'm not the one foolish enough to use the worst piece of reporting bloatware out there. If you can find someone who supports it here, I'll be shocked. If you want to get help then ask in the right place, try ASP or C# or whatever language you are using. Don't ask programming questions in the lounge, they are about as welcome as Donatella Versace in a skin flick.


                  Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                  R T P 3 Replies Last reply
                  0
                  • S Smithers Jones

                    You broke rule 2[^].

                    "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

                    N Offline
                    N Offline
                    Nagy Vilmos
                    wrote on last edited by
                    #9

                    As long as it's not Rule 99.1[^], we can recover the situation.


                    Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                    A 1 Reply Last reply
                    0
                    • R RC_Sebastien_C

                      diverbw wrote:

                      I am a newbie to Crystal Reports

                      Here's a pointer: Stay away while you can!

                      D Offline
                      D Offline
                      diverbw
                      wrote on last edited by
                      #10

                      Thank you for the nice response, your advice is duly noted!

                      R 1 Reply Last reply
                      0
                      • N Nagy Vilmos

                        I'm not the one who can't read. Do you think "Please do not post programming questions here." doesn't apply to you? I'm not the one foolish enough to use the worst piece of reporting bloatware out there. If you can find someone who supports it here, I'll be shocked. If you want to get help then ask in the right place, try ASP or C# or whatever language you are using. Don't ask programming questions in the lounge, they are about as welcome as Donatella Versace in a skin flick.


                        Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                        R Offline
                        R Offline
                        RC_Sebastien_C
                        wrote on last edited by
                        #11

                        Nagy Vilmos wrote:

                        Donatella Versace in a skin flick

                        X| This shouldn't pass the filters. Please don't be cruel and give a warning next time. Now where can I get mental bleach?

                        1 Reply Last reply
                        0
                        • D diverbw

                          I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #12

                          Brad, I see from your profile that you have been a member of this site for a while, but this is your first posting so I'm not sure whether or not to say welcome to Code Project. As a new poster, you may not be aware of the etiquette of posting in the Lounge, so I thought I'd point out that there is a section at the top of this forum saying that programming questions should not be posted here in the Lounge. Please don't take any negative replies to heart, they are only pointing out that this is not the correct forum and if you were to ask this in say the .NET forum, you would probably get quite a decent reply. Don't let this minor SNAFU get in the way of making productive use of the site. I look forward to seeing you kick back and join in with the banter here in the Lounge - the denizens are generally quite pleasant once you get to know them.

                          Forgive your enemies - it messes with their heads

                          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                          D N 2 Replies Last reply
                          0
                          • D diverbw

                            I would like to write a utility class that will let me execute a Crystal Report inside any .Net application and produce a PDF file. As this is a utility class, I would like for it to be completely independent of the actual type of .Net program, i.e. it should work the same way in a console application, a windows service, an ASP.Net web application, a Windows Forms application, etc. I am a newbie to Crystal Reports, and everything I have found so far on using CR in .Net is always tied to some specific type of .Net application, typically either an ASP.Net or a Windows Forms application. Also, my applications are very low volume applications, so I hope that I do not have to deal with all of the large volume, super scalable CR infrastructure installations like RAS. Any pointers or references to useful things on the web would be most welcome! Thanks, Brad

                            Sander RosselS Offline
                            Sander RosselS Offline
                            Sander Rossel
                            wrote on last edited by
                            #13

                            diverbw wrote:

                            Any pointers or references ... would be most welcome!

                            int *i;

                            Unfortunately I've been programming using CR for the last few weeks. To answer your question, look at the ReportDocument Class[^] (make sure you have the right CR assembly referenced) and Properties/Methods containing "export" in their name... Now don't post programming questions in the lounge again. It seems I am more forgiving than some Nagy's on this forum, but I might not be such a nice guy next time ;)

                            It's an OO world.

                            public class Naerling : Lazy<Person>{
                            public void DoWork(){ throw new NotImplementedException(); }
                            }

                            1 Reply Last reply
                            0
                            • P Pete OHanlon

                              Brad, I see from your profile that you have been a member of this site for a while, but this is your first posting so I'm not sure whether or not to say welcome to Code Project. As a new poster, you may not be aware of the etiquette of posting in the Lounge, so I thought I'd point out that there is a section at the top of this forum saying that programming questions should not be posted here in the Lounge. Please don't take any negative replies to heart, they are only pointing out that this is not the correct forum and if you were to ask this in say the .NET forum, you would probably get quite a decent reply. Don't let this minor SNAFU get in the way of making productive use of the site. I look forward to seeing you kick back and join in with the banter here in the Lounge - the denizens are generally quite pleasant once you get to know them.

                              Forgive your enemies - it messes with their heads

                              "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                              D Offline
                              D Offline
                              diverbw
                              wrote on last edited by
                              #14

                              Thank you Pete for the nice reply. I definitely DID make a mistake by not reading those rules first. But I've been amazed at the responses here, so much so that I just started another post in The Lounge that discusses the elitism and cronyism that obviously exists on this board. It is really sad that such a great online resource is being tarnished in this way by the unprofessional-ism I've witnessed today. Frankly, while I do get a lot of good information from this site, I have noticed that the bulk of the projects on this site are actually written by very low time, inexperienced people, and many times from other countries. I really appreciate the hard work that they do, and even with my long experience in this field, I find their work very useful. And I am impressed with how these young members in our profession are volunteering their time as a way of furthering their own careers, just as young attorneys often do pro-bono work to build their fledgling law practices. Cudo's to them all! I just hope by this dialog, and the dialog that I hope will be generated in my "First Experiences With The Lounge" thread will be taken to heart by others in such a way that it will improve their professional skills and lead to further success in their careers and lives. Thanks again, Pete!

                              A 1 Reply Last reply
                              0
                              • N Nagy Vilmos

                                As long as it's not Rule 99.1[^], we can recover the situation.


                                Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                A Offline
                                A Offline
                                Albert Holguin
                                wrote on last edited by
                                #15

                                :laugh: Hadn't seen that one... might have to post that at work somewhere since we all have indecision issues.

                                1 Reply Last reply
                                0
                                • D diverbw

                                  Thank you Pete for the nice reply. I definitely DID make a mistake by not reading those rules first. But I've been amazed at the responses here, so much so that I just started another post in The Lounge that discusses the elitism and cronyism that obviously exists on this board. It is really sad that such a great online resource is being tarnished in this way by the unprofessional-ism I've witnessed today. Frankly, while I do get a lot of good information from this site, I have noticed that the bulk of the projects on this site are actually written by very low time, inexperienced people, and many times from other countries. I really appreciate the hard work that they do, and even with my long experience in this field, I find their work very useful. And I am impressed with how these young members in our profession are volunteering their time as a way of furthering their own careers, just as young attorneys often do pro-bono work to build their fledgling law practices. Cudo's to them all! I just hope by this dialog, and the dialog that I hope will be generated in my "First Experiences With The Lounge" thread will be taken to heart by others in such a way that it will improve their professional skills and lead to further success in their careers and lives. Thanks again, Pete!

                                  A Offline
                                  A Offline
                                  AspDotNetDev
                                  wrote on last edited by
                                  #16

                                  diverbw wrote:

                                  It is really sad that such a great online resource is being tarnished in this way by the unprofessional-ism I've witnessed today

                                  To put it bluntly, you seem to be expecting a whore to act like a princess. The Lounge isn't intended for professionalism. It's a bar in a city of brilliance. It's a place for us to let loose a little (though not too loose). I wouldn't take what you see in the Lounge to be representative of the rest of the site. For example, if you wander over to The Soapbox or The Back Room (the back alley and cesspool of Code Project), you will see far worse than what is in the Lounge. You have unfortunately strayed into unfamiliar territory and have seemed to take it personally. Really though, it's an online forum and I wouldn't take much of what others say here personally (I know, easier said than done).

                                  Somebody in an online forum wrote:

                                  INTJs never really joke. They make a point. The joke is just a gift wrapper.

                                  1 Reply Last reply
                                  0
                                  • P Pete OHanlon

                                    Brad, I see from your profile that you have been a member of this site for a while, but this is your first posting so I'm not sure whether or not to say welcome to Code Project. As a new poster, you may not be aware of the etiquette of posting in the Lounge, so I thought I'd point out that there is a section at the top of this forum saying that programming questions should not be posted here in the Lounge. Please don't take any negative replies to heart, they are only pointing out that this is not the correct forum and if you were to ask this in say the .NET forum, you would probably get quite a decent reply. Don't let this minor SNAFU get in the way of making productive use of the site. I look forward to seeing you kick back and join in with the banter here in the Lounge - the denizens are generally quite pleasant once you get to know them.

                                    Forgive your enemies - it messes with their heads

                                    "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                                    My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                                    N Offline
                                    N Offline
                                    Nish Nishant
                                    wrote on last edited by
                                    #17

                                    Wow. I had to read it twice to make sure I was actually reading a mature response here. :)

                                    Regards, Nish


                                    My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

                                    S P 2 Replies Last reply
                                    0
                                    • N Nagy Vilmos

                                      I'm not the one who can't read. Do you think "Please do not post programming questions here." doesn't apply to you? I'm not the one foolish enough to use the worst piece of reporting bloatware out there. If you can find someone who supports it here, I'll be shocked. If you want to get help then ask in the right place, try ASP or C# or whatever language you are using. Don't ask programming questions in the lounge, they are about as welcome as Donatella Versace in a skin flick.


                                      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                      T Offline
                                      T Offline
                                      TheGreatAndPowerfulOz
                                      wrote on last edited by
                                      #18

                                      Nagy Vilmos wrote:

                                      Donatella Versace in a skin flick

                                      X| :wtf: :omg: X| X| X| X| X|

                                      If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
                                      You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

                                      1 Reply Last reply
                                      0
                                      • N Nish Nishant

                                        Wow. I had to read it twice to make sure I was actually reading a mature response here. :)

                                        Regards, Nish


                                        My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

                                        S Offline
                                        S Offline
                                        S Houghtelin
                                        wrote on last edited by
                                        #19

                                        Pete's a class act, there is no doubt. Now that Yoda dude (or whatever Yoda is) that is a different story. ;)

                                        It was broke, so I fixed it.

                                        1 Reply Last reply
                                        0
                                        • D diverbw

                                          Thank you for the nice response, your advice is duly noted!

                                          R Offline
                                          R Offline
                                          RC_Sebastien_C
                                          wrote on last edited by
                                          #20

                                          :thumbsup: Hang in there, we're not that bad :)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups