473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Nov 15 '05 #1
6 16550
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" <ri***@ifko.ktu.lt> wrote in message
news:87**************************@posting.google.c om...
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

Nov 15 '05 #2
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" <ri***@ifko.ktu.lt> wrote in message
news:87**************************@posting.google.c om...
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

Nov 15 '05 #3
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" <ri***@ifko.ktu.lt> wrote in message
news:87**************************@posting.google.c om...
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

Nov 15 '05 #4
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in message news:<eg**************@TK2MSFTNGP10.phx.gbl>...
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?


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
Nov 15 '05 #5
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

Regards

John Farrow
"Rimantas Zukaitis" <ri***@ifko.ktu.lt> wrote in message
news:87**************************@posting.google.c om...
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in

message news:<eg**************@TK2MSFTNGP10.phx.gbl>...
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?


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

Nov 15 '05 #6
john farrow wrote:
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


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
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raheel Hussain | last post by:
hi, guyz. I want to generate HTML based reports with ASP. But the problem which i m having is to controll the Paging operation while printing the reports. Unlike the Professional reports...
2
by: Vikram | last post by:
i want simple report functionality for which i do not want to use any reporting tool like crystal etc. Is there any class or code available which can be used for generating reports using asp.net...
4
gregerly
by: gregerly | last post by:
Hello All, I just wanted to get some input from the experts, what options are available for generating reports using PHP / MySQL. I can easily create HTML reports, but I'm thinking more along the...
1
by: sreedivya | last post by:
Hi, I am using Crystal Reports with .NET 2.0 for generating reports in my project. My database is SQLSERVER 2000. I want to display list of absentees between 2 given dates. For this I have written...
0
by: Aswanth | last post by:
I'm Generating Reports in SSRS-2005.. Previously I got the Data from One Database & Generated Reports.. Now I used to get the Data from Two Different Databases(ie Database-1 & Database-2) & to...
0
by: Aswanth | last post by:
I'm Working with Asp.Net with C#.. & I'm Generating Reports in SSRS-2005.. Till Now I'm Generating Reports in SSRS-2005 with Stored Procedure.. in Which I'm Generating Reports for One...
0
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Text Log File.. I want to Get this Data from this Log File & to Generate REPORTS in SSRS 2005.. Please...
1
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Microsoft Excel Sheets .. I want to Get this Data from this Microsoft Excel Sheets & to Generate REPORTS in...
1
by: sbettadpur | last post by:
hello everybody, please give me an information for generating reports in pdf format. where i will get library files, with an example of creating pdf files thank you
2
by: veer | last post by:
hi i made program in which i am generating the report of a ms-table database it works fine only on my computer and generatin the reports but when i run this exe on any computer the whole programe...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.