Click here to Skip to main content
15,924,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: removing null entries Pin
lawrenceinba4-Feb-09 18:01
lawrenceinba4-Feb-09 18:01 
GeneralRe: removing null entries Pin
Expert Coming4-Feb-09 18:13
Expert Coming4-Feb-09 18:13 
QuestionHow to create action buttons same as in powerpoint.... Pin
priyareguri4-Feb-09 12:41
priyareguri4-Feb-09 12:41 
AnswerRe: How to create action buttons same as in powerpoint.... Pin
Christian Graus4-Feb-09 16:43
protectorChristian Graus4-Feb-09 16:43 
QuestionJPEG thumbnail extraction Pin
Camilo Sanchez4-Feb-09 12:29
Camilo Sanchez4-Feb-09 12:29 
AnswerRe: JPEG thumbnail extraction Pin
_Maxxx_4-Feb-09 17:48
professional_Maxxx_4-Feb-09 17:48 
GeneralToo slow Pin
Camilo Sanchez5-Feb-09 4:46
Camilo Sanchez5-Feb-09 4:46 
QuestionC# .NET Problem with Mail Merge and Word's Normal.dot Template File Pin
frank3si4-Feb-09 10:14
frank3si4-Feb-09 10:14 
Hi folks -

This is my first post here, though I've gained some excellent knowledge by searching the site in the past.

I am having a problem with a Word-based mail merge in a C# Windows form application. The problem has to do with the Normal.dot template.

At a high level, my app copies a Word dot template file (not named Normal) to a temp directory, and performs a merge with a data file. If I wanted to save the newly-merged doc file at this point and then close Word entirely there would be no problem.

But, I need to keep the newly-created merged content doc file open. Right now, here’s what happens:

The merge takes place, my app ends, and you are left viewing the new doc file in Word.

At this point, you can either “Save As” with this new doc then exit Word, or just exit Word without saving the new doc – the following occurs either way.

A message box appears: “The file is in use by another application or user. (C:\Documents and Settings\...\Normal.dot)”.

Click OK (the only choice) and a “Save As” pane appears referring to Normal.dot.

Click on “Cancel” (because I don’t want to save Normal.dot) and you’re looking at a empty instance of Word.

Click the red X or choose File/Exit and a message box appears: “Changes have been made that affect the global template, Normal.dot. Do you want to save these changes?”

Select “No” and Word finally closes.

Again, if I just wanted to have the app save my new doc then shut down Word this would be easy. But how can I kill whatever has attached itself to Normal.dot while leaving my new doc open in Word? I don’t want the users to have to deal with making choices about the Normal.dot file. Again, the dot I use in the merge is not Normal.dot…

Thanks for any insight about this problem…

Frank
AnswerRe: C# .NET Problem with Mail Merge and Word's Normal.dot Template File Pin
frank3si4-Feb-09 10:54
frank3si4-Feb-09 10:54 
GeneralRe: C# .NET Problem with Mail Merge and Word's Normal.dot Template File Pin
afs957-Jan-10 8:45
afs957-Jan-10 8:45 
Questiontime zone, DST and historical dates Pin
Jim Crafton4-Feb-09 9:58
Jim Crafton4-Feb-09 9:58 
AnswerRe: time zone, DST and historical dates Pin
led mike4-Feb-09 11:19
led mike4-Feb-09 11:19 
QuestionIDataReader and Null values Pin
Terick4-Feb-09 9:34
Terick4-Feb-09 9:34 
AnswerRe: IDataReader and Null values Pin
PIEBALDconsult4-Feb-09 13:38
mvePIEBALDconsult4-Feb-09 13:38 
AnswerRe: IDataReader and Null values Pin
vaghelabhavesh4-Feb-09 15:10
vaghelabhavesh4-Feb-09 15:10 
General[Message Deleted] Pin
Terick6-Feb-09 4:59
Terick6-Feb-09 4:59 
GeneralRe: IDataReader and Null values Pin
vaghelabhavesh6-Feb-09 8:04
vaghelabhavesh6-Feb-09 8:04 
QuestionDataGridComboBoxColumn.. Did it ever exist?? Pin
Muammar©4-Feb-09 8:31
Muammar©4-Feb-09 8:31 
AnswerRe: DataGridComboBoxColumn.. Did it ever exist?? Pin
Tony Richards4-Feb-09 9:02
Tony Richards4-Feb-09 9:02 
QuestionCross cutting code Pin
Nathan Gloyn4-Feb-09 8:28
Nathan Gloyn4-Feb-09 8:28 
AnswerRe: Cross cutting code Pin
Jon Rista4-Feb-09 8:58
Jon Rista4-Feb-09 8:58 
QuestionCannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 7:46
Lodeclaw4-Feb-09 7:46 
AnswerRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Kristian Sixhøj4-Feb-09 7:55
Kristian Sixhøj4-Feb-09 7:55 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Lodeclaw4-Feb-09 7:58
Lodeclaw4-Feb-09 7:58 
GeneralRe: Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime' Pin
Christian Graus4-Feb-09 9:24
protectorChristian Graus4-Feb-09 9:24 

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.