Click here to Skip to main content
15,867,309 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Sending mail with excel attachment issue Pin
Mugdha_Aditya4-Aug-10 20:38
Mugdha_Aditya4-Aug-10 20:38 
GeneralRe: Sending mail with excel attachment issue Pin
Prosanta Kundu online4-Aug-10 21:14
Prosanta Kundu online4-Aug-10 21:14 
QuestionMessage Removed Pin
4-Aug-10 15:27
coderclan4-Aug-10 15:27 
AnswerRe: How to create chat with asp.net, ajax and xmpp? Pin
Prosanta Kundu online4-Aug-10 18:56
Prosanta Kundu online4-Aug-10 18:56 
QuestionDo I need to keep auto generated meta information in connection string for Entity Model ? Pin
Nadia Monalisa4-Aug-10 13:17
Nadia Monalisa4-Aug-10 13:17 
QuestionMessage Removed Pin
4-Aug-10 6:03
arkiboys4-Aug-10 6:03 
AnswerRe: ajax dropdown Pin
Sandeep Mewara4-Aug-10 6:10
mveSandeep Mewara4-Aug-10 6:10 
QuestionNeed Solution to replace text with image in word 2007 and save the file in .pdf format [modified] Pin
raghvendrapanda4-Aug-10 2:55
raghvendrapanda4-Aug-10 2:55 
How to replace text with image in word 2007 and save the file in .pdf format

this is my code

_wordapp.ActiveWindow.Selection.WholeStory();
_wordapp.ActiveWindow.Selection.Copy();
IDataObject data = Clipboard.GetDataObject();
string temp = "";
temp = data.GetData(DataFormats.Text).ToString();
temp = temp.Replace("\r", "");
string[] arrtemp = temp.Split(Environment.NewLine.ToCharArray());

int pos = 0;
for (int t = 0; t < arrtemp.Length; t++)
{
if (arrtemp[t].Contains("Sign1"))
{
pos = t;
string fileName = GetSignPath(); //the picture file to be inserted
Object oMissed = _aDoc.Paragraphs[pos].Range; //the position you want to insert
Object oLinkToFile = false; //default
Object oSaveWithDocument = true;//default
_aDoc.InlineShapes.AddPicture(fileName, ref oLinkToFile, ref oSaveWithDocument, ref oMissed);
File.Delete(fileName);

this.FindAndReplace("Sign1", "");

}
}

Its replacing at wrong place instead of where i wanted(i.e. in place of Sign1)
Sign1 is the text given in the Word 2007 to find and replace it with image
Instead it is placing sumwhere else only in the .pdf file
Please suggest me the solution code if possible to solve it

Its urgent

Thanks,

Harish

modified on Wednesday, August 4, 2010 10:21 AM

QuestionMessage Removed Pin
4-Aug-10 2:05
Haider M Rizvi4-Aug-10 2:05 
Answer[Cross-Post] create hirarchial page link Pin
Sandeep Mewara4-Aug-10 7:49
mveSandeep Mewara4-Aug-10 7:49 
AnswerRe: create hirarchial page link Pin
Ennis Ray Lynch, Jr.4-Aug-10 7:50
Ennis Ray Lynch, Jr.4-Aug-10 7:50 
Questionsending a mail with attachments Pin
benams4-Aug-10 1:21
benams4-Aug-10 1:21 
AnswerRe: sending a mail with attachments Pin
raju melveetilpurayil4-Aug-10 3:55
professionalraju melveetilpurayil4-Aug-10 3:55 
GeneralRe: sending a mail with attachments Pin
benams4-Aug-10 6:55
benams4-Aug-10 6:55 
GeneralRe: sending a mail with attachments Pin
raju melveetilpurayil4-Aug-10 8:23
professionalraju melveetilpurayil4-Aug-10 8:23 
GeneralRe: sending a mail with attachments Pin
benams4-Aug-10 12:56
benams4-Aug-10 12:56 
GeneralRe: sending a mail with attachments Pin
Mugdha_Aditya4-Aug-10 19:22
Mugdha_Aditya4-Aug-10 19:22 
AnswerRe: sending a mail with attachments Pin
Prosanta Kundu online4-Aug-10 20:17
Prosanta Kundu online4-Aug-10 20:17 
QuestionAjax timer error [modified] Pin
Amit Patel19853-Aug-10 20:45
Amit Patel19853-Aug-10 20:45 
AnswerRe: Ajax timer error Pin
raju melveetilpurayil3-Aug-10 21:32
professionalraju melveetilpurayil3-Aug-10 21:32 
Questionhow to Log DAL exception and showing alert to user when exception occurs? Pin
Paramhans Dubey3-Aug-10 18:58
professionalParamhans Dubey3-Aug-10 18:58 
QuestionHow to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda3-Aug-10 9:00
raghvendrapanda3-Aug-10 9:00 
AnswerRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
Yusuf3-Aug-10 17:11
Yusuf3-Aug-10 17:11 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda3-Aug-10 22:43
raghvendrapanda3-Aug-10 22:43 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
Yusuf4-Aug-10 7:13
Yusuf4-Aug-10 7:13 

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.