Articles in this section
Category / Section

How can I use DocIO in an ASP.NET application?

2 mins read

 

DocIO can be used in both winforms and webforms applications without any changes to the code. The usage is the same for both winforms and webforms applications. The only difference in the case of a webforms application is that the created document is streamed to the client browser. Here is the code snippet for streaming the generated documented to the browser.

C#

// Streaming the document to client browser.

document.Save( "Sample.doc" , FormatType.Doc , Response , HttpContentDisposition.InBrowser );

// Streaming the document in attachment.

document.Save( "Sample.doc" , FormatType.Doc , Response , HttpContentDisposition.Attachment);

VB

' Streaming the document to client browser.

document.Save("Sample.doc", FormatType.Doc, Response, HttpContentDisposition.InBrowser)

' Streaming the document in attachment.

document.Save("Sample.doc", FormatType.Doc, Response, HttpContentDisposition.Attachment)

Here is the sample.

Getting_Started.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied