Click here to Skip to main content
16,011,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to bind property to control (through this[string]) Pin
darkelv22-May-08 23:00
darkelv22-May-08 23:00 
GeneralRe: How to bind property to control (through this[string]) Pin
El'Cachubrey22-May-08 23:05
El'Cachubrey22-May-08 23:05 
GeneralRe: How to bind property to control (through this[string]) Pin
darkelv23-May-08 0:00
darkelv23-May-08 0:00 
GeneralRe: How to bind property to control (through this[string]) Pin
El'Cachubrey23-May-08 1:21
El'Cachubrey23-May-08 1:21 
GeneralRe: How to bind property to control (through this[string]) [modified] Pin
darkelv23-May-08 1:31
darkelv23-May-08 1:31 
GeneralRe: How to bind property to control (through this[string]) Pin
El'Cachubrey23-May-08 1:49
El'Cachubrey23-May-08 1:49 
GeneralRe: How to bind property to control (through this[string]) Pin
darkelv23-May-08 1:56
darkelv23-May-08 1:56 
QuestionMerging of multiple word documents using automation causes a change of font ! Pin
ryan-uk22-May-08 22:17
ryan-uk22-May-08 22:17 
Hi ,



I am using the following code to merge a number of word docs.


Word._Document wordDocument = wordApplication.Documents.Add(

ref missing

, ref missing

, ref missing

, ref missing);

// Make a Word selection object.

Word.Selection selection = wordApplication.Selection;

// Loop thru each of the Word documents

foreach (string file in filesToMerge)

{

// Insert the files to our template

selection.InsertFile(

file

, ref missing

, ref missing

, ref missing

, ref missing);

//Do we want page breaks added after each documents?

if (insertPageBreaks)

{

selection.InsertBreak(ref pageBreak);

}

}

selection.

// Save the document to it's output file.

wordDocument.SaveAs(

ref outputFile

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing

, ref missing);







Testing showed that for certain documents all formatting was preserved yet for some documents it changed the font to Times New Roman size 12.

Any ideas to what would cause this as I am stumped.



Thanks in advance.



Ryan.
QuestionConnecting to Running Instances mozilla browser Pin
mihir raut22-May-08 22:12
mihir raut22-May-08 22:12 
AnswerRe: Connecting to Running Instances mozilla browser Pin
Jimmanuel23-May-08 10:30
Jimmanuel23-May-08 10:30 
QuestionOpening and reading excel document programatically from C# Pin
kindzal22-May-08 22:06
kindzal22-May-08 22:06 
AnswerRe: Opening and reading excel document programatically from C# Pin
Giorgi Dalakishvili22-May-08 22:09
mentorGiorgi Dalakishvili22-May-08 22:09 
AnswerRe: Opening and reading excel document programatically from C# Pin
DaveyM6922-May-08 23:12
professionalDaveyM6922-May-08 23:12 
QuestionForm Opacity Pin
D i x y22-May-08 21:59
D i x y22-May-08 21:59 
AnswerRe: Form Opacity Pin
Giorgi Dalakishvili22-May-08 22:08
mentorGiorgi Dalakishvili22-May-08 22:08 
Questionpocket pc application layout Pin
max8022-May-08 21:49
max8022-May-08 21:49 
QuestionRunning Console Application in System Tray Pin
ptr2void22-May-08 21:42
ptr2void22-May-08 21:42 
QuestionCould we change "Properties" of a setup.exe ? [modified] Pin
bug_aonz22-May-08 21:30
bug_aonz22-May-08 21:30 
AnswerRe: Could we change "Properties" of an setup.exe ? Pin
Colin Angus Mackay22-May-08 21:43
Colin Angus Mackay22-May-08 21:43 
GeneralRe: Could we change "Properties" of an setup.exe ? Pin
bug_aonz22-May-08 21:52
bug_aonz22-May-08 21:52 
GeneralRe: Could we change "Properties" of an setup.exe ? Pin
Colin Angus Mackay22-May-08 22:18
Colin Angus Mackay22-May-08 22:18 
GeneralRe: Could we change "Properties" of an setup.exe ? Pin
bug_aonz22-May-08 23:30
bug_aonz22-May-08 23:30 
GeneralRe: Could we change "Properties" of an setup.exe ? Pin
mav.northwind25-May-08 21:44
mav.northwind25-May-08 21:44 
QuestionC# IO question Pin
poqeqw22-May-08 20:51
poqeqw22-May-08 20:51 
AnswerRe: C# IO question Pin
Christian Graus22-May-08 21:10
protectorChristian Graus22-May-08 21:10 

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.