Click here to Skip to main content
15,908,437 members

Comments by Balav4 (Top 3 by date)

Balav4 26-Feb-15 2:39am View    
By using Above code , we are not able to get EndNote Page number. It gets the EndNote Link Page No.
Balav4 20-Feb-15 2:07am View    
foreach (Word.Endnote _EndNote in AppWord.ActiveDocument.Endnotes)
{
foreach (Word.InlineShape Shapes in _EndNote.Range.InlineShapes)
{
Shapes.Select();
int num = Convert.ToInt32(AppWord.Selection.get_Information(Word.WdInformation.wdActiveEndPageNumber));

}
}

this is my Code. I am getting Wrong Page Number
Balav4 2-Aug-14 0:46am View    
Hi I guess this might be the error
Check you text having apos "'" in case there is any apos that will consider as syntax error
so pass it as parameter

Eg
SqlCommand Cmd = new SqlCommand("Insert into Category (CategoryName) VAlues (@CategoryName)", conn);
Cmd.Parameters.AddWithValue("@CategoryName", TeNewCategory.Text);
cmd.executeNonquery();