Click here to Skip to main content
15,887,429 members
Home / Discussions / C#
   

C#

 
QuestionHow to process a ms-word Doc? Pin
moomoori19-Aug-07 10:56
moomoori19-Aug-07 10:56 
AnswerRe: How to process a ms-word Doc? Pin
Luc Pattyn19-Aug-07 11:01
sitebuilderLuc Pattyn19-Aug-07 11:01 
AnswerRe: How to process a ms-word Doc? Pin
Christian Graus19-Aug-07 11:25
protectorChristian Graus19-Aug-07 11:25 
AnswerRe: How to process a ms-word Doc? Pin
originSH19-Aug-07 22:19
originSH19-Aug-07 22:19 
AnswerRe: How to process a ms-word Doc? Pin
moomoori20-Aug-07 12:24
moomoori20-Aug-07 12:24 
Questiondeleting items from listbox with DEL Pin
mizitras19-Aug-07 10:53
mizitras19-Aug-07 10:53 
AnswerRe: deleting items from listbox with DEL Pin
Luc Pattyn19-Aug-07 10:59
sitebuilderLuc Pattyn19-Aug-07 10:59 
QuestionMOVED TO ASP.NET FORUM [modified] Pin
Malcolm Smart19-Aug-07 10:52
Malcolm Smart19-Aug-07 10:52 
I can't delete it as it has been answered....

Hi - gone totally blank on this, up against the clock, and hoping somebody can patronisingly explain this one...

I have a Button on a webpage, which when clicked, generates a word doc, via automation, and saves it to a share. All done server side. Code simlar to the following (which doesn't work):-
protected void OnGenerateDoc( object sender , EventArgs args )
{
  MyDocGen gen = new MyDocGen();
  gen.CreateDocAndSaveHere(@"\\publicserver\publicshare\wellknownfilename.doc");
  //code above works, code below does b****r all.
 (HttpContext.Current.CurrentHandler as Page).ClientScript.RegisterClientScriptBlock(this.GetType()
, "myScriptKey", "alert('your document is ready');");
}


The alert command should be any javascript function that can be called. I just want it called when my stuff is complete. Any ideas? This is all in a custom control, in a DLL , hence the long winded way to get to the ClientScript. Is this the correct way of getting a reference to the page?

Last modified: 54mins after originally posted --


"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF


"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

AnswerRe: Generate Doc then Open it Client Side Pin
Judah Gabriel Himango19-Aug-07 11:29
sponsorJudah Gabriel Himango19-Aug-07 11:29 
QuestionNumber of processors Pin
Jay Gatsby19-Aug-07 10:29
Jay Gatsby19-Aug-07 10:29 
AnswerRe: Number of processors Pin
originSH19-Aug-07 10:48
originSH19-Aug-07 10:48 
GeneralRe: Number of processors Pin
originSH20-Aug-07 0:20
originSH20-Aug-07 0:20 
AnswerRe: Number of processors Pin
Mustafa Ismail Mustafa19-Aug-07 10:52
Mustafa Ismail Mustafa19-Aug-07 10:52 
AnswerRe: Number of processors Pin
Luc Pattyn19-Aug-07 10:56
sitebuilderLuc Pattyn19-Aug-07 10:56 
GeneralRe: Number of processors Pin
Jay Gatsby19-Aug-07 13:43
Jay Gatsby19-Aug-07 13:43 
AnswerRe: Number of processors Pin
Hessam Jalali19-Aug-07 11:04
Hessam Jalali19-Aug-07 11:04 
GeneralRe: Number of processors Pin
Jay Gatsby19-Aug-07 13:40
Jay Gatsby19-Aug-07 13:40 
QuestionUrgent help requested Pin
T.D.Prasad19-Aug-07 9:57
T.D.Prasad19-Aug-07 9:57 
AnswerRe: Urgent help requested Pin
Judah Gabriel Himango19-Aug-07 11:31
sponsorJudah Gabriel Himango19-Aug-07 11:31 
QuestionChanging the style of a combobox Pin
WBurgMo19-Aug-07 9:25
WBurgMo19-Aug-07 9:25 
AnswerRe: Changing the style of a combobox Pin
Mustafa Ismail Mustafa19-Aug-07 10:11
Mustafa Ismail Mustafa19-Aug-07 10:11 
QuestionUnable to attach to application 'Web.Dev.WebServer.Exe'. Pin
T4AMD19-Aug-07 9:04
T4AMD19-Aug-07 9:04 
Questionconfiguration file Pin
MarioMARTIN19-Aug-07 8:44
MarioMARTIN19-Aug-07 8:44 
AnswerRe: configuration file Pin
Christian Graus19-Aug-07 11:28
protectorChristian Graus19-Aug-07 11:28 
GeneralRe: configuration file Pin
MarioMARTIN19-Aug-07 20:00
MarioMARTIN19-Aug-07 20:00 

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.