Click here to Skip to main content
16,006,512 members
Home / Discussions / C#
   

C#

 
QuestionRetrieve shortcut(.lnk) target location Pin
boshesh29-Mar-06 3:30
boshesh29-Mar-06 3:30 
AnswerRe: Retrieve shortcut(.lnk) target location Pin
Robin Panther29-Mar-06 7:44
Robin Panther29-Mar-06 7:44 
GeneralRe: Retrieve shortcut(.lnk) target location Pin
boshesh29-Mar-06 21:19
boshesh29-Mar-06 21:19 
GeneralRe: Retrieve shortcut(.lnk) target location Pin
boshesh29-Mar-06 21:34
boshesh29-Mar-06 21:34 
QuestionHow to change the Startup Type of a Service? Pin
kingking29-Mar-06 3:08
kingking29-Mar-06 3:08 
QuestionCombobox events Pin
Cliffer29-Mar-06 3:06
Cliffer29-Mar-06 3:06 
AnswerRe: Combobox events Pin
albCode29-Mar-06 3:31
albCode29-Mar-06 3:31 
QuestionWord Mailmerge question Pin
kpkr29-Mar-06 2:55
kpkr29-Mar-06 2:55 
Hi,
I am currently working on a application that generates faxes from mail merged documents (Word and Excel datasource). Everything works fine. Except the client has an habit of creating the mail merge document with all the information in word 2003 Textbox. (Including the mail merge field). I use C# to do the mail merge and so far i have not found any way of reading these fields. (The text boxes are termed as Shapes in the Word API, so far I havent been able to find how to access anything inside a Shape).We have already decided to tell the client to take the Mail merge fields out of text boxes so that the Word API can read them.
But i want to be absolutely sure that there is no way to read them before i request the client to make an process change. If anyone has encounted this issue before please advise.

Thanks Kalyan

Word.ApplicationClass wrdApp;
Word.Document wrdDoc;
wrdApp = new Word.ApplicationClass();

object docuFile = this.lblDocSrc.Text;
wrdDoc = wrdApp.Documents.Open(ref docuFile, 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);

foreach(Word.Field myField in wrdDoc.Fields)
{
	myField.Select();
	if (!DocFields.Contains(myField.Result.Text.ToString()))
	{
		DocFields.Add(myField.Result.Text.ToString());
	}
	i++;
}

QuestionEvent before object is removed from datagridview Pin
hpetriffer29-Mar-06 2:23
hpetriffer29-Mar-06 2:23 
Questioninsert sql Pin
wistiti529-Mar-06 1:34
wistiti529-Mar-06 1:34 
AnswerRe: insert sql Pin
V.29-Mar-06 1:40
professionalV.29-Mar-06 1:40 
GeneralRe: insert sql Pin
wistiti529-Mar-06 1:58
wistiti529-Mar-06 1:58 
GeneralRe: insert sql Pin
V.29-Mar-06 3:24
professionalV.29-Mar-06 3:24 
AnswerRe: insert sql Pin
Artur Sokhikyan29-Mar-06 1:52
Artur Sokhikyan29-Mar-06 1:52 
GeneralRe: insert sql Pin
wistiti529-Mar-06 2:07
wistiti529-Mar-06 2:07 
GeneralRe: insert sql Pin
V.29-Mar-06 3:27
professionalV.29-Mar-06 3:27 
AnswerRe: insert sql Pin
albCode29-Mar-06 2:14
albCode29-Mar-06 2:14 
QuestionPLS HELP == ABOUT FILES Pin
Artur Sokhikyan29-Mar-06 0:48
Artur Sokhikyan29-Mar-06 0:48 
AnswerRe: PLS HELP == ABOUT FILES Pin
J4amieC29-Mar-06 0:56
J4amieC29-Mar-06 0:56 
QuestionEditing data in Pivot Table component Pin
arobind29-Mar-06 0:24
arobind29-Mar-06 0:24 
QuestionData from textbox into database and newlines Pin
Genbox29-Mar-06 0:22
Genbox29-Mar-06 0:22 
AnswerRe: Data from textbox into database and newlines Pin
Genbox29-Mar-06 0:35
Genbox29-Mar-06 0:35 
AnswerRe: Data from textbox into database and newlines Pin
albCode29-Mar-06 0:37
albCode29-Mar-06 0:37 
QuestionWhere is the password textbox in C#? Pin
Ming Luo28-Mar-06 23:41
Ming Luo28-Mar-06 23:41 
AnswerRe: Where is the password textbox in C#? Pin
R. Giskard Reventlov28-Mar-06 23:57
R. Giskard Reventlov28-Mar-06 23:57 

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.