Generating reports with C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rimantas Žukaitis

    #1

    Generating reports with C#

    Hi,

    we are developing server side report generation application with .NET.
    The problem is, that we have to present same data in diferent formats
    (HTML, PDF, WORD, EXCEL). This has to be done using templates, wich
    are defined by user (with GUI frontend). The main problem is how to
    generate Word (or Excel) document with C#? Using COM automation seems
    to be very clumsy and resource consuming? Is there any way to generate
    Word document without instantiating Word application itself?

    CrystalReports engine looks like the alternative to automation, but is
    it possible to create Crystal Report dynamically from scratch? Because
    the report template is defined in XML file using stand alone GUI.

    Any help is appreciated.

    Thanks in advance,
    Rimantas Žukaitis
  • Christoph Schittko [MVP]

    #2
    Re: Generating reports with C#

    If you are exclusive targetting Office 2003 products then you're in luck.
    These products have good XML support, you could simple transform your XML to
    WordML like Oleg showed in his blog [0]. I don't know of any product that
    has managed classes to generate office documents. Have you tried looking on
    Google and/or Retail sites like ComponentSource ?

    HTH,
    Christoph Schittko
    Software Architect, .NET Mentor
    MS MVP XML .NET

    [0] http://www.tkachenko.com/blog/archives/000024.html

    "Rimantas Zukaitis" <rimaz@ifko.ktu .lt> wrote in message
    news:87a3eee6.0 308220321.77cb1 594@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > we are developing server side report generation application with .NET.
    > The problem is, that we have to present same data in diferent formats
    > (HTML, PDF, WORD, EXCEL). This has to be done using templates, wich
    > are defined by user (with GUI frontend). The main problem is how to
    > generate Word (or Excel) document with C#? Using COM automation seems
    > to be very clumsy and resource consuming? Is there any way to generate
    > Word document without instantiating Word application itself?
    >
    > CrystalReports engine looks like the alternative to automation, but is
    > it possible to create Crystal Report dynamically from scratch? Because
    > the report template is defined in XML file using stand alone GUI.
    >
    > Any help is appreciated.
    >
    > Thanks in advance,
    > Rimantas Zukaitis[/color]


    Comment

    • Christoph Schittko [MVP]

      #3
      Re: Generating reports with C#

      If you are exclusive targetting Office 2003 products then you're in luck.
      These products have good XML support, you could simple transform your XML to
      WordML like Oleg showed in his blog [0]. I don't know of any product that
      has managed classes to generate office documents. Have you tried looking on
      Google and/or Retail sites like ComponentSource ?

      HTH,
      Christoph Schittko
      Software Architect, .NET Mentor
      MS MVP XML .NET

      [0] http://www.tkachenko.com/blog/archives/000024.html

      "Rimantas Zukaitis" <rimaz@ifko.ktu .lt> wrote in message
      news:87a3eee6.0 308220321.77cb1 594@posting.goo gle.com...[color=blue]
      > Hi,
      >
      > we are developing server side report generation application with .NET.
      > The problem is, that we have to present same data in diferent formats
      > (HTML, PDF, WORD, EXCEL). This has to be done using templates, wich
      > are defined by user (with GUI frontend). The main problem is how to
      > generate Word (or Excel) document with C#? Using COM automation seems
      > to be very clumsy and resource consuming? Is there any way to generate
      > Word document without instantiating Word application itself?
      >
      > CrystalReports engine looks like the alternative to automation, but is
      > it possible to create Crystal Report dynamically from scratch? Because
      > the report template is defined in XML file using stand alone GUI.
      >
      > Any help is appreciated.
      >
      > Thanks in advance,
      > Rimantas Zukaitis[/color]


      Comment

      • Darin

        #4
        Re: Generating reports with C#

        I have done something similar using Active Reports. You can create reports
        from scratch at runtime and convert them into pdf, html and excel files.
        Take a look at www.datadynamics.com

        Good Luck

        "Rimantas Zukaitis" <rimaz@ifko.ktu .lt> wrote in message
        news:87a3eee6.0 308220321.77cb1 594@posting.goo gle.com...[color=blue]
        > Hi,
        >
        > we are developing server side report generation application with .NET.
        > The problem is, that we have to present same data in diferent formats
        > (HTML, PDF, WORD, EXCEL). This has to be done using templates, wich
        > are defined by user (with GUI frontend). The main problem is how to
        > generate Word (or Excel) document with C#? Using COM automation seems
        > to be very clumsy and resource consuming? Is there any way to generate
        > Word document without instantiating Word application itself?
        >
        > CrystalReports engine looks like the alternative to automation, but is
        > it possible to create Crystal Report dynamically from scratch? Because
        > the report template is defined in XML file using stand alone GUI.
        >
        > Any help is appreciated.
        >
        > Thanks in advance,
        > Rimantas Zukaitis[/color]


        Comment

        • Rimantas Žukaitis

          #5
          Re: Generating reports with C#

          "Christoph Schittko [MVP]" <christophdotne tINVALID@austin .rr.com> wrote in message news:<egzG82KaD HA.1740@TK2MSFT NGP10.phx.gbl>. ..[color=blue]
          > If you are exclusive targetting Office 2003 products then you're in luck.
          > These products have good XML support, you could simple transform your XML to
          > WordML like Oleg showed in his blog [0]. I don't know of any product that
          > has managed classes to generate office documents. Have you tried looking on
          > Google and/or Retail sites like ComponentSource ?
          >[/color]

          Wehave considered alternative to generate RTF documents from XML,
          instead of trying to generate DOC document using automation. Maybe
          there is something similar to Apache FOP in Java for C#?

          thanks,
          Rimantas

          Comment

          • john farrow

            #6
            Re: Generating reports with C#

            Apache FOP is an implementation of the XSL-FO standard for generating
            documents from XML.

            A .NET implementation of this standard is Ibex, from


            Regards

            John Farrow


            "Rimantas Zukaitis" <rimaz@ifko.ktu .lt> wrote in message
            news:87a3eee6.0 308271232.4011d f95@posting.goo gle.com...[color=blue]
            > "Christoph Schittko [MVP]" <christophdotne tINVALID@austin .rr.com> wrote in[/color]
            message news:<egzG82KaD HA.1740@TK2MSFT NGP10.phx.gbl>. ..[color=blue][color=green]
            > > If you are exclusive targetting Office 2003 products then you're in[/color][/color]
            luck.[color=blue][color=green]
            > > These products have good XML support, you could simple transform your[/color][/color]
            XML to[color=blue][color=green]
            > > WordML like Oleg showed in his blog [0]. I don't know of any product[/color][/color]
            that[color=blue][color=green]
            > > has managed classes to generate office documents. Have you tried looking[/color][/color]
            on[color=blue][color=green]
            > > Google and/or Retail sites like ComponentSource ?
            > >[/color]
            >
            > Wehave considered alternative to generate RTF documents from XML,
            > instead of trying to generate DOC document using automation. Maybe
            > there is something similar to Apache FOP in Java for C#?
            >
            > thanks,
            > Rimantas[/color]


            Comment

            • Oleg Tkachenko

              #7
              Re: Generating reports with C#

              john farrow wrote:
              [color=blue]
              > Apache FOP is an implementation of the XSL-FO standard for generating
              > documents from XML.
              >
              > A .NET implementation of this standard is Ibex, from
              > http://www.xmlpdf.com/ibex.html[/color]

              It's worth also to take a look at AntennaHouse XSL Formatter. It's COM based,
              but it's just the best one.
              --
              Oleg Tkachenko

              Multiconn Technologies, Israel

              Comment

              Working...