Click here to Skip to main content
15,890,399 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Problem with webbrowser control loading local images Pin
Dalek Dave22-May-11 4:27
professionalDalek Dave22-May-11 4:27 
GeneralRe: c# Problem with webbrowser control loading local images [modified] Pin
_Q12_22-May-11 4:31
_Q12_22-May-11 4:31 
AnswerRe: c# Problem with webbrowser control loading local images [modified] Pin
Luc Pattyn22-May-11 5:07
sitebuilderLuc Pattyn22-May-11 5:07 
AnswerRe: c# Problem with webbrowser control loading local images Pin
Luc Pattyn22-May-11 5:30
sitebuilderLuc Pattyn22-May-11 5:30 
GeneralRe: c# Problem with webbrowser control loading local images Pin
Mark Salsbery22-May-11 5:32
Mark Salsbery22-May-11 5:32 
GeneralRe: c# Problem with webbrowser control loading local images Pin
_Q12_22-May-11 7:12
_Q12_22-May-11 7:12 
AnswerRe: c# Problem with webbrowser control loading local images Pin
#realJSOP23-May-11 1:47
mve#realJSOP23-May-11 1:47 
QuestionClose wrod corrctly, it's possile? Pin
abbd21-May-11 13:49
abbd21-May-11 13:49 
Hello,

I create 4000 files word like this :

foreach (string s in FUSIONSS_1)
            {   
                
 
                String[] tbStr2 = s.Split(new Char[] { ';' });
                string nb = tbStr2[0];
                Object oMissing = System.Reflection.Missing.Value;
                Object oTrue = true;
                Object oFalse = false;
                Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application();
                Microsoft.Office.Interop.Word.Document oWordDoc = new Microsoft.Office.Interop.Word.Document();
                oWord.Visible = true;
                oWord.Visible = false;
                Object oTemplatePath = modelee;
                oWordDoc = oWord.Documents.Add(ref oTemplatePath, ref oMissing, ref oMissing, ref oMissing);
                bool sympb = false; bool E = false; bool n = false; bool p = false; bool r = false;
               
                foreach (Microsoft.Office.Interop.Word.Range range in oWordDoc.Words)
                {if (range.Text.Trim().Contains("P"))
                    {   int pos = range.Text.Trim().IndexOf("P");
                        string str = range.Text.Trim().Replace("P", "O");
                        range.Text = str;} }
                Directory.CreateDirectory((Object)path + "./PUBLI/" + nb);
                Object oSaveAsFile = (Object)path + "./PUBLI/" + nb + "/" + nb + ".doc";
                oWordDoc.SaveAs(ref oSaveAsFile, ref oMissing, ref oMissing, ref oMissing,
                ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                ref oMissing, ref oMissing);
                oWordDoc.Close(ref oFalse, ref  oMissing, ref oMissing);
                oWord.Quit(ref oMissing, ref oMissing, ref oMissing);
            }



unfortunately the process winword.exe don't be kill on the task manager of my server.
How i can close the word file correctly?, thank you verry mutch.
AnswerRe: Close wrod corrctly, it's possile? Pin
Luc Pattyn21-May-11 14:14
sitebuilderLuc Pattyn21-May-11 14:14 
AnswerRe: Close wrod corrctly, it's possile? Pin
Not Active21-May-11 16:00
mentorNot Active21-May-11 16:00 
AnswerRe: Close wrod corrctly, it's possile? Pin
GenJerDan21-May-11 17:01
GenJerDan21-May-11 17:01 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 5:56
abbd22-May-11 5:56 
GeneralRe: Close wrod corrctly, it's possile? Pin
GenJerDan22-May-11 7:41
GenJerDan22-May-11 7:41 
GeneralRe: Close wrod corrctly, it's possile? Pin
abbd22-May-11 10:13
abbd22-May-11 10:13 
GeneralRe: Close wrod corrctly, it's possile? [modified] Pin
GenJerDan23-May-11 3:20
GenJerDan23-May-11 3:20 
QuestionDynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 8:18
Matt U.21-May-11 8:18 
AnswerRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Luc Pattyn21-May-11 8:50
sitebuilderLuc Pattyn21-May-11 8:50 
GeneralRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 8:59
Matt U.21-May-11 8:59 
AnswerRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Luc Pattyn21-May-11 9:10
sitebuilderLuc Pattyn21-May-11 9:10 
GeneralRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Matt U.21-May-11 10:28
Matt U.21-May-11 10:28 
AnswerRe: Dynamically generate link labels (open to alternatives if necessary) Pin
Luc Pattyn21-May-11 10:34
sitebuilderLuc Pattyn21-May-11 10:34 
Questionget the unicode of a character in c# Pin
prasadbuddhika20-May-11 22:44
prasadbuddhika20-May-11 22:44 
AnswerRe: get the unicode of a character in c# Pin
Daniel Scott20-May-11 23:05
Daniel Scott20-May-11 23:05 
GeneralRe: get the unicode of a character in c# Pin
prasadbuddhika20-May-11 23:22
prasadbuddhika20-May-11 23:22 
QuestionNotImplementedExpression System.Collections.ListDictionaryInternal --> Error in Print-Preview in XP Pin
Pfotenhauer20-May-11 22:33
Pfotenhauer20-May-11 22:33 

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.