Click here to Skip to main content
15,885,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 code to solve it

Its urgent

Thanks,

Harish
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 
GeneralRe: How to replace text with image in word 2007 and save the file in .pdf format Pin
raghvendrapanda4-Aug-10 9:00
raghvendrapanda4-Aug-10 9:00 
Questionpage break in pdf file [modified] Pin
Dhyanga3-Aug-10 8:33
Dhyanga3-Aug-10 8:33 
AnswerRe: page break in pdf file Pin
raju melveetilpurayil3-Aug-10 9:36
professionalraju melveetilpurayil3-Aug-10 9:36 
GeneralRe: page break in pdf file Pin
Dhyanga3-Aug-10 10:02
Dhyanga3-Aug-10 10:02 
GeneralRe: page break in pdf file Pin
Yusuf3-Aug-10 17:15
Yusuf3-Aug-10 17:15 
GeneralRe: page break in pdf file Pin
Dhyanga4-Aug-10 3:39
Dhyanga4-Aug-10 3:39 
GeneralRe: page break in pdf file Pin
Yusuf4-Aug-10 7:10
Yusuf4-Aug-10 7:10 
QuestionRegarding MVC View Pin
Tiger4563-Aug-10 7:15
Tiger4563-Aug-10 7:15 
AnswerRe: Regarding MVC View Pin
Not Active3-Aug-10 7:54
mentorNot Active3-Aug-10 7:54 
GeneralRe: Regarding MVC View Pin
Tiger4563-Aug-10 8:37
Tiger4563-Aug-10 8:37 
GeneralRe: Regarding MVC View Pin
Not Active3-Aug-10 17:34
mentorNot Active3-Aug-10 17:34 
QuestionTwo Calendar Controls Pin
Mansi Arora3-Aug-10 1:36
Mansi Arora3-Aug-10 1:36 
AnswerRe: Two Calendar Controls Pin
nagendrathecoder3-Aug-10 2:14
nagendrathecoder3-Aug-10 2:14 
AnswerRe: Two Calendar Controls Pin
JHizzle3-Aug-10 2:16
JHizzle3-Aug-10 2:16 

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.