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.
  • D Duncan Edwards Jones
    1. Output data to Excel (use ClosedML from codeplex) 2) Tell users to go wild colouring in the resulting spreadsheet however they like
    S Offline
    S Offline
    Slacker007
    wrote on last edited by
    #15

    Duncan Edwards Jones wrote:

    colouring in the resulting spreadsheet however they like

    Because we all know that users just want colorful reports with lots of bling. Fuck the data, show me the color. :)

    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
      Slacker007
      wrote on last edited by
      #16

      Ok. Only you can decide what is the correct method for you. Good luck. Report tools all suck at some level.

      K 1 Reply Last reply
      0
      • S Slacker007

        Ok. Only you can decide what is the correct method for you. Good luck. Report tools all suck at some level.

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

        Slacker007 wrote:

        Report tools all suck at some level.

        Ain't that the truth.

        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

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #18

          Kevin Marois wrote:

          Crysal Report....20 years ago they were great. $hit now.

          No, they were $hit then, too.

          Will Rogers never met me.

          L 1 Reply Last reply
          0
          • 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
                                          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