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. WPF Reporting

WPF Reporting

Scheduled Pinned Locked Moved The Lounge
questioncsharpwpfcomhelp
47 Posts 26 Posters 4 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.
  • L Lost User

    Kevin Marois wrote:

    Is it just me or has reporting gotten REALLYL complicated?

    ..take a text-file, write a method that replaces text, loop the dataset and replace the placeholders in the text-file with values, and you're done. Add some HTML, and presto, reports you can view with any "device". Add your background and all the other markup as CSS. It does not have to be complicated. If you are to sell that reporting-solution to someone else, then it has to sound complicated. Otherwise, they would simply take a text-file, write a method..

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

    Richard DeemingR Offline
    Richard DeemingR Offline
    Richard Deeming
    wrote on last edited by
    #19

    Or, you could go a bit further and re-use ASP.NET MVC's Razor: https://github.com/AlexCuse/RazorReport[^]


    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

    1 Reply Last reply
    0
    • K Kevin Marois

      COBOL? HAHAHA Thanks, I needed a laugh.

      If it's not broken, fix it until it is

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #20

      COBOL lives.

      cheers Chris Maunder

      K D pkfoxP 3 Replies Last reply
      0
      • C Chris Maunder

        COBOL lives.

        cheers Chris Maunder

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #21

        Chris Maunder wrote:

        COBOL lives.

        ... in someone's mind.

        If it's not broken, fix it until it is

        1 Reply Last reply
        0
        • K Kevin Marois

          I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

          If it's not broken, fix it until it is

          J Offline
          J Offline
          Jon Sagara
          wrote on last edited by
          #22

          Have you looked at using RDLC? It's baked into Visual Studio, and apparently there's a ReportViewer that you can use with WPF. http://msdn.microsoft.com/en-us/library/hh273267.aspx[^] I'm using it with great success in an ASP.NET MVC app.

          Jon Sagara Some see the glass as half-empty, some see the glass as half-full. I see the glass as too big. -- George Carlin Blog | Twitter | Articles

          Y 1 Reply Last reply
          0
          • K Kevin Marois

            I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

            If it's not broken, fix it until it is

            N Offline
            N Offline
            NormDroid
            wrote on last edited by
            #23

            I wrote my own, it outputs to: Laser Matrix Fax Email PDF Excel HTML Text SQL And if anything is missing I just code it in.

            Web | News | LinkedIn

            1 Reply Last reply
            0
            • J Jon Sagara

              Have you looked at using RDLC? It's baked into Visual Studio, and apparently there's a ReportViewer that you can use with WPF. http://msdn.microsoft.com/en-us/library/hh273267.aspx[^] I'm using it with great success in an ASP.NET MVC app.

              Jon Sagara Some see the glass as half-empty, some see the glass as half-full. I see the glass as too big. -- George Carlin Blog | Twitter | Articles

              Y Offline
              Y Offline
              Yuriy Loginov
              wrote on last edited by
              #24

              Yeah its based on SSRS. Personally I really like it.

              1 Reply Last reply
              0
              • C Chris Maunder

                COBOL lives.

                cheers Chris Maunder

                D Offline
                D Offline
                dandy72
                wrote on last edited by
                #25

                Chris Maunder wrote:

                COBOL lives.

                It scares me to read that coming from you, of all people. Which vital part of codeproject.com does it run?

                C 1 Reply Last reply
                0
                • K Kevin Marois

                  I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                  If it's not broken, fix it until it is

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #26

                  You know you can print WPF, right? So design your report in WPF, bind, print. Bob's your proverbial Mother's Brother.

                  PooperPig - Coming Soon

                  G 1 Reply Last reply
                  0
                  • K Kevin Marois

                    I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                    If it's not broken, fix it until it is

                    M Offline
                    M Offline
                    Mycroft Holmes
                    wrote on last edited by
                    #27

                    We use SSRS, both the RLD server version and the RDLC embedded in the apps, works well, has a WPF viewer (no Silverlight viewer though). Oh and Roger is correct Crystal Reports were shit 20 years ago as well!

                    Never underestimate the power of human stupidity RAH

                    1 Reply Last reply
                    0
                    • D dandy72

                      Chris Maunder wrote:

                      COBOL lives.

                      It scares me to read that coming from you, of all people. Which vital part of codeproject.com does it run?

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #28

                      The really old bit.

                      cheers Chris Maunder

                      G 1 Reply Last reply
                      0
                      • C Chris Maunder

                        COBOL lives.

                        cheers Chris Maunder

                        pkfoxP Offline
                        pkfoxP Offline
                        pkfox
                        wrote on last edited by
                        #29

                        It does indeed, name your price you contractors.

                        We can’t stop here, this is bat country - Hunter S Thompson RIP

                        1 Reply Last reply
                        0
                        • K Kevin Marois

                          If all the report contained was columns of raw text, then sure, this would work. But back to the real world... my report has a lot more content, so no, looping over data and replacing text is not an option.

                          If it's not broken, fix it until it is

                          S Offline
                          S Offline
                          Sentenryu
                          wrote on last edited by
                          #30

                          Can't you just use razor / T4 to generate an html page? you can have anything on that page. Razor is a bit more complicated to get working out of mvc, but is possible and the templates look nicer than T4, but both work wonders.

                          1 Reply Last reply
                          0
                          • K Kevin Marois

                            I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                            If it's not broken, fix it until it is

                            P Offline
                            P Offline
                            PaulFlats
                            wrote on last edited by
                            #31

                            Create the reports in Ms Access, it's the easiest and fastest way to create reports and best reporting tool IMO.

                            1 Reply Last reply
                            0
                            • L Lost User

                              You know you can print WPF, right? So design your report in WPF, bind, print. Bob's your proverbial Mother's Brother.

                              PooperPig - Coming Soon

                              G Offline
                              G Offline
                              Gary Wheeler
                              wrote on last edited by
                              #32

                              Have you ever created a non-trivial WPF document? It's a tremendous memory hog, and leaks like a sieve. I have an in-house report generator that can create HTML or WPF docs. For a 5MB HTML document, the corresponding WPF doc is 400-500MB. Loading that into a viewer control takes several minutes (consuming 1G or more of memory), which brings the entire application to a screeching, page-faulting halt. The gains from using WPF documents (data binding et al) aren't worth the costs.

                              Software Zen: delete this;

                              L 1 Reply Last reply
                              0
                              • C Chris Maunder

                                The really old bit.

                                cheers Chris Maunder

                                G Offline
                                G Offline
                                Gary Wheeler
                                wrote on last edited by
                                #33

                                Visions of a drooling, geriatric hamster, multiple IV's hooked to its body, stumbling on a rusted, urine-encrusted wheel come to mind. Yes, I wanted that picture in my head this morning :sigh:.

                                Software Zen: delete this;

                                C 1 Reply Last reply
                                0
                                • K Kevin Marois

                                  I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                                  If it's not broken, fix it until it is

                                  G Offline
                                  G Offline
                                  Gary Wheeler
                                  wrote on last edited by
                                  #34

                                  If your reports aren't that complicated, I don't see the problem with generating HTML, as others have suggested. I have an in-house reporting class that uses this approach. It generates HTML for readable documents and XML for import/export, both from the same report specification. While the HTML isn't fancy, that's only limited by your skill at CSS.

                                  Software Zen: delete this;

                                  H 1 Reply Last reply
                                  0
                                  • G Gary Wheeler

                                    Have you ever created a non-trivial WPF document? It's a tremendous memory hog, and leaks like a sieve. I have an in-house report generator that can create HTML or WPF docs. For a 5MB HTML document, the corresponding WPF doc is 400-500MB. Loading that into a viewer control takes several minutes (consuming 1G or more of memory), which brings the entire application to a screeching, page-faulting halt. The gains from using WPF documents (data binding et al) aren't worth the costs.

                                    Software Zen: delete this;

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #35

                                    Gary Wheeler wrote:

                                    Have you ever created a non-trivial WPF document?

                                    Yes

                                    Gary Wheeler wrote:

                                    It's a tremendous memory hog,

                                    Is it? I can't say I'd noticed - the WPF app I work on is a memory hog much worse in so many other ways, any WPF overhead is trivial by comparison!

                                    Gary Wheeler wrote:

                                    leaks like a sieve.

                                    Interesting - I've been doing some work on fixing memory leaks in our app - none (so far!) has been due to WPF

                                    Gary Wheeler wrote:

                                    The gains from using WPF documents (data binding et al) aren't worth the costs.

                                    with the possible exception of the fact that the OP is using WPF so may well have excellent WPF skills, existing forms and data binding that may suffice for his reporting requirements with perhaps a little tweaking. Personally I'm a fan of exporting data to excel for reporting - let the report users tweak the raw data how they want - and provide templates if necessary HTML is fine for the pretties, but rubbish if users want to play with the data

                                    PooperPig - Coming Soon

                                    G 1 Reply Last reply
                                    0
                                    • L Lost User

                                      Gary Wheeler wrote:

                                      Have you ever created a non-trivial WPF document?

                                      Yes

                                      Gary Wheeler wrote:

                                      It's a tremendous memory hog,

                                      Is it? I can't say I'd noticed - the WPF app I work on is a memory hog much worse in so many other ways, any WPF overhead is trivial by comparison!

                                      Gary Wheeler wrote:

                                      leaks like a sieve.

                                      Interesting - I've been doing some work on fixing memory leaks in our app - none (so far!) has been due to WPF

                                      Gary Wheeler wrote:

                                      The gains from using WPF documents (data binding et al) aren't worth the costs.

                                      with the possible exception of the fact that the OP is using WPF so may well have excellent WPF skills, existing forms and data binding that may suffice for his reporting requirements with perhaps a little tweaking. Personally I'm a fan of exporting data to excel for reporting - let the report users tweak the raw data how they want - and provide templates if necessary HTML is fine for the pretties, but rubbish if users want to play with the data

                                      PooperPig - Coming Soon

                                      G Offline
                                      G Offline
                                      Gary Wheeler
                                      wrote on last edited by
                                      #36

                                      My reporting class serves two purposes. One, I display the generated HTML in a browser control inside the app. Two, the HTML/XML can be written to a file and used elsewhere. The best example is our 'diagnostic report'. Instead of playing 20 Questions with a customer (or our field service folks), we have them send us a diagnostic report. It takes one click to generate. It's about 5-10MB of HTML that dumps application and Windows information.

                                      _Maxxx_ wrote:

                                      Personally I'm a fan of exporting data to excel for reporting - let the report users tweak the raw data how they want - and provide templates if necessary

                                      I'd use that method if I could, but it's beyond the skill set (or interest) for my customers.

                                      Software Zen: delete this;

                                      1 Reply Last reply
                                      0
                                      • K Kevin Marois

                                        I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                                        If it's not broken, fix it until it is

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #37

                                        I use SQL Reporting and the Perpetuum Silverlight Report Viewer. I'm very pleased with the results.

                                        1 Reply Last reply
                                        0
                                        • K Kevin Marois

                                          I posted a question [^]about WPF reporting. I got a few answers and I've been looking at them. 1) I've decided against Telerik after their Tech Support told their report suit only works if you purchase their Control suite also. 2) Infragists... NO! Used their crap in the past and I won't go back. Besides, I can't find a demo to try. Not a same to run... a demo I can download and work with. 3) CodeReason[^]... Looks promsing, but I downloaded it and I don't see any kind of designer(????) 4) Crysal Report....20 years ago they were great. $hit now. This got me thinking... what happened to the days of easy reporting. It used to be simple. Is it just me or has reporting gotten REALLYL complicated?

                                          If it's not broken, fix it until it is

                                          K Offline
                                          K Offline
                                          Kirk 10389821
                                          wrote on last edited by
                                          #38

                                          Fast-Report[^] Used it for Delphi years ago. Still works. In fact, just built about 10 reports with it. Available for .Net Solid design, as I am able to run X reports, and collect each report separately into one final result (for preview and/or printing), and with some effort, you can get the page numbering (x of y) to be correct in either mode (each report starts a page 1 of Yn, or each report picks up where the other left off). And the report "file" (.frp) is actually XML. I was able to tweak this outside of the report generator just fine. One other great feature: find text works in the preview! HTH, Kirk Out!

                                          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