Click here to Skip to main content
15,886,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Hi Yusuf,

Dude I tried but i am getting the exception.


_wordapp.ActiveWindow.Selection.WholeStory();
_wordapp.ActiveWindow.Selection.Copy();
IDataObject data = Clipboard.GetDataObject();
string temp = "";

int temp1 = 0;
temp = data.GetData(DataFormats.Text).ToString();
temp = temp.Replace("\r", "");
//temp = System.Text.RegularExpressions.Regex.Replace(temp, @"\r", "");
temp1 = Convert.ToInt32(temp.Length);
temp1 = temp.IndexOf("Sign1");
for (int t = arrtemp.Length - 1; t > 0; t--)
{
if (arrtemp[t].Contains("Sign1"))
{
//pos = t;
string fileName = GetSignPath(); //the picture file to be inserted
Object oMissed = _aDoc.Paragraphs[temp1].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);
//_wordapp.Selection.InlineShapes.AddPicture(fileName,ref oFalse, ref oTrue, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
_wordapp.Selection.InlineShapes.AddPicture(fileName, ref oLinkToFile, ref oSaveWithDocument, ref oMissed);

File.Delete(fileName);

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

I am getting exception at below mentioned line
Object oMissed = _aDoc.Paragraphs[temp1].Range;

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WindowsFormsApp_Templates.exe

Additional information: The requested member of the collection does not exist.

Need help.Got stuck at this place.

Thanks,
Harish
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 
AnswerRe: Two Calendar Controls Pin
raju melveetilpurayil3-Aug-10 4:17
professionalraju melveetilpurayil3-Aug-10 4:17 
Questionreportviewer in web Pin
Thanusree Duth2-Aug-10 22:31
Thanusree Duth2-Aug-10 22:31 
AnswerRe: reportviewer in web Pin
R. Giskard Reventlov2-Aug-10 22:36
R. Giskard Reventlov2-Aug-10 22:36 
AnswerRe: reportviewer in web Pin
Prosanta Kundu online4-Aug-10 0:36
Prosanta Kundu online4-Aug-10 0:36 

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.