Click here to Skip to main content
15,895,799 members
Home / Discussions / C#
   

C#

 
AnswerRe: caching data on server in windows application in c# Pin
jschell25-May-11 10:16
jschell25-May-11 10:16 
QuestionTFS GetEffectivePermission and TF14014: Cannot query effective item or global permissions for other users. Pin
devvvy24-May-11 16:26
devvvy24-May-11 16:26 
QuestionWorking with multiple values in one field in an Access database Pin
Matt U.24-May-11 11:50
Matt U.24-May-11 11:50 
AnswerRe: Working with multiple values in one field in an Access database PinPopular
Paladin200024-May-11 12:12
Paladin200024-May-11 12:12 
GeneralRe: Working with multiple values in one field in an Access database Pin
Matt U.24-May-11 13:36
Matt U.24-May-11 13:36 
GeneralRe: Working with multiple values in one field in an Access database Pin
V.25-May-11 1:33
professionalV.25-May-11 1:33 
AnswerRe: Working with multiple values in one field in an Access database Pin
Roger Wright25-May-11 19:39
professionalRoger Wright25-May-11 19:39 
Questionconcatenate the word document, it's possible? Pin
abbd24-May-11 7:03
abbd24-May-11 7:03 
How we can concatenate the word document, I explain, i would make a single document of 1000 pages (each document is on one page) and then save only a single document instead of 1000, thank you much.

i use this to crate one document :

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("$"))
    {   int pos = range.Text.Trim().IndexOf("$");
        string str = range.Text.Trim().Replace("$", "");
        range.Text = str;} }

foreach (Microsoft.Office.Interop.Word.Range range in oWordDoc.Words)
{if (range.Text.Trim().Contains("$$"))
    {   int pos = range.Text.Trim().IndexOf("$$");
        string str = range.Text.Trim().Replace("$$", "");
        range.Text = str;} }

Object oSaveAsFile ="./1.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);

AnswerRe: concatenate the word document, it's possible? Pin
Eddy Vluggen25-May-11 0:19
professionalEddy Vluggen25-May-11 0:19 
AnswerRe: concatenate the word document, it's possible? Pin
Alan N25-May-11 2:05
Alan N25-May-11 2:05 
AnswerRe: concatenate the word document, it's possible? Pin
Dave Kreskowiak25-May-11 2:59
mveDave Kreskowiak25-May-11 2:59 
GeneralRe: concatenate the word document, it's possible? Pin
Alan N25-May-11 4:06
Alan N25-May-11 4:06 
GeneralRe: concatenate the word document, it's possible? Pin
Dave Kreskowiak25-May-11 6:22
mveDave Kreskowiak25-May-11 6:22 
AnswerRe: concatenate the word document, it's possible? Pin
RaviRanjanKr26-May-11 1:55
professionalRaviRanjanKr26-May-11 1:55 
GeneralRe: concatenate the word document, it's possible? Pin
abbd26-May-11 2:33
abbd26-May-11 2:33 
QuestionProblem in Deserializing the XML Pin
Rocky2324-May-11 4:06
Rocky2324-May-11 4:06 
AnswerRe: Problem in Deserializing the XML Pin
PIEBALDconsult24-May-11 5:32
mvePIEBALDconsult24-May-11 5:32 
Questionhow to make multiple asynchronous web service method calls in the same thread? [modified] Pin
JUNEYT24-May-11 2:57
JUNEYT24-May-11 2:57 
AnswerRe: how to make multiple asynchronous web service method calls in the same thread? [modified] Pin
Mark Salsbery24-May-11 5:27
Mark Salsbery24-May-11 5:27 
QuestionHow to acheive this in LINQ? Pin
John-ph24-May-11 1:53
John-ph24-May-11 1:53 
AnswerRe: How to acheive this in LINQ? Pin
Groulien24-May-11 2:02
Groulien24-May-11 2:02 
GeneralRe: How to acheive this in LINQ? Pin
John-ph24-May-11 2:50
John-ph24-May-11 2:50 
AnswerRe: How to acheive this in LINQ? PinPopular
Pete O'Hanlon24-May-11 2:23
mvePete O'Hanlon24-May-11 2:23 
GeneralRe: How to acheive this in LINQ? Pin
Groulien24-May-11 2:27
Groulien24-May-11 2:27 
GeneralRe: How to acheive this in LINQ? Pin
Pete O'Hanlon24-May-11 2:28
mvePete O'Hanlon24-May-11 2:28 

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.