[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

generate word document from asp.net using c#

Can someone provide a quick example or a link to  an example showing how to create a word document from an asp.net page using c#

I am generating a report from a database, could use dataset, or datareader whatever. Need  to display in word instead of to screen. Have seen articles showing how to generate rtf files  which stream to word  but  they are coded in ASP and Vbscript, or Vb.net.  

Any  help  would be appreciated.
0
jschillm
Asked:
jschillm
  • 2
  • 2
1 Solution
 
jschillmAuthor Commented:
btw, if someonoe has  a solution other than a link, i  will up  the points.
0
 
vinhnlCommented:
0
 
jschillmAuthor Commented:
I thought I saw articles that said using office automation with asp.net was not a good Idea, I think Microsoft even said it was not a good idea. I had seen articles referencing creating rtf files which can then be streamed to word, but all examples are in vb.net and not c#. Any ideas on this?
0
 
Jesse HouwingScrum Trainer | Microsoft MVP | ALM Ranger | ConsultantCommented:
Corrent.

There's a thrid part component which can be found at www.aspose.com. You can use it to gerenate documents on the fly. They also have a page up explaining the issues with both performance, security and licensing issues surrounding word automation.
0
 
Jesse HouwingScrum Trainer | Microsoft MVP | ALM Ranger | ConsultantCommented:
Another option is to use the Crystal Reports for VS.net 2003 which comes with Visual studio. You can export reports from Crystal directly to Word.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now