Click here to Skip to main content
15,892,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Table Controls clear Pin
saanj12-Jun-09 2:22
saanj12-Jun-09 2:22 
GeneralRe: Table Controls clear Pin
kanadoss12-Jun-09 2:33
kanadoss12-Jun-09 2:33 
GeneralRe: Table Controls clear Pin
N a v a n e e t h12-Jun-09 2:50
N a v a n e e t h12-Jun-09 2:50 
GeneralRe: Table Controls clear Pin
saanj12-Jun-09 2:53
saanj12-Jun-09 2:53 
QuestionASP.Net Server control Pin
Amit Patel198512-Jun-09 1:55
Amit Patel198512-Jun-09 1:55 
AnswerRe: ASP.Net Server control Pin
saanj12-Jun-09 2:19
saanj12-Jun-09 2:19 
AnswerRe: ASP.Net Server control Pin
Abhijit Jana12-Jun-09 3:20
professionalAbhijit Jana12-Jun-09 3:20 
QuestionGenerating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:04
YazhiniP12-Jun-09 1:04 
Hi,

I have to generate a word document dynamically in .Net.
I have to write the contents of the GridView to the Word document.
I am able to do all but,the problem is i have to save the file automatically to a particular folder than saving the File via the FileDialog box.
Can anyone please tell me that how to store the word file automatically to a particular location?
I have given the code below.

            string attachment = "attachment; filename=" + strFilePath;

            Response.ClearContent();

            Response.AddHeader("content-disposition", attachment);

            Response.ContentType = "application/ms-word";
     
            StringWriter sWriter = new StringWriter();

            HtmlTextWriter htwWriter = new HtmlTextWriter(sWriter);

            gvRCA.RenderControl(htwWriter);
           
            Response.Write(sWriter.ToString());

            Response.End();

Yazhini

AnswerRe: Generating word document and saving to a particular location in c#.net Pin
Christian Graus12-Jun-09 1:15
protectorChristian Graus12-Jun-09 1:15 
AnswerRe: Generating word document and saving to a particular location in c#.net Pin
YazhiniP12-Jun-09 1:47
YazhiniP12-Jun-09 1:47 
Questionerror is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
jigneshp2512-Jun-09 1:03
jigneshp2512-Jun-09 1:03 
AnswerRe: error is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
Christian Graus12-Jun-09 1:16
protectorChristian Graus12-Jun-09 1:16 
AnswerRe: error is \\The parameterized query '(@img_type nvarchar(4000),@img_stream nvarchar(4000))INSERT INTO' expects the parameter '@img_type', which was not supplied. Pin
Abhijit Jana12-Jun-09 1:20
professionalAbhijit Jana12-Jun-09 1:20 
QuestionObject reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
KhandelwalA12-Jun-09 0:56
KhandelwalA12-Jun-09 0:56 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
Christian Graus12-Jun-09 1:17
protectorChristian Graus12-Jun-09 1:17 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
saanj12-Jun-09 1:25
saanj12-Jun-09 1:25 
AnswerRe: Object reference not set to an instance of an object. (Use the New keyword to create object instance) Pin
Abhijit Jana12-Jun-09 1:40
professionalAbhijit Jana12-Jun-09 1:40 
QuestionHow to Add the BindingManager to the tool box in asp.net if we can Pin
govindi unal11-Jun-09 23:26
govindi unal11-Jun-09 23:26 
QuestionMost Visited Pin
Ramkumar_S11-Jun-09 23:24
Ramkumar_S11-Jun-09 23:24 
AnswerRe: Most Visited Pin
Christian Graus11-Jun-09 23:45
protectorChristian Graus11-Jun-09 23:45 
AnswerRe: Most Visited Pin
saanj12-Jun-09 0:20
saanj12-Jun-09 0:20 
AnswerRe: Most Visited Pin
Colin Angus Mackay12-Jun-09 0:39
Colin Angus Mackay12-Jun-09 0:39 
Questionproblem in alert Pin
janani1311-Jun-09 21:39
janani1311-Jun-09 21:39 
AnswerRe: problem in alert Pin
Aman Bhullar11-Jun-09 21:40
Aman Bhullar11-Jun-09 21:40 
AnswerRe: problem in alert Pin
Blue_Boy11-Jun-09 21:54
Blue_Boy11-Jun-09 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.