How to add some text at the end of document that is opened in Edraw office viewer, Kindly send me java script code so that i can enter signatures in my document. Please reply as soon as possible and send my java script Example.
4 Responses to “Add some text at the end of Word document”
Leave a Reply
You must be logged in to post a comment.
March 30th, 2008 at 2:15 am
We want to insert the text at the end of the word document.
The function OA1.WordInsertText val is inserting the text but at cursur
location, how do I move the cursor to end of the document and insert the
text.
Solution:
document.all.OA1.Open(“C:\\test.doc”);
var objWord;
objWord = new Object(document.all.OA1.ActiveDocument);
//objWord.Content.Text = “This was added by Automation”
var dd;
dd = objWord.Application.Selection.EndKey 6;
document.all.OA1.WordInsertBreak 6;
document.all.OA1.WordInsertText (“Insert signature”);
April 11th, 2008 at 9:58 am
Javascript: insert a signature in the end of Word Document
function CreateDoc()
{
document.all.OA1.Open(“C:\\1.doc”);
var objWord = document.all.OA1.ActiveDocument;
var dd = objWord.Application.Selection.EndKey(6);
document.all.OA1.WordInsertBreak(6);
document.all.OA1.WordInsertText (“Insert signature”);
}
April 11th, 2008 at 10:00 am
Javascript: insert a picture in the end of Word Document
function InsertPicture()
{
document.all.OA1.Open(“C:\\1.doc”);
var objWord = document.all.OA1.ActiveDocument;
var dd = objWord.Application.Selection.EndKey(6);
document.all.OA1.WordInsertBreak(6);
document.all.OA1.WordInsertPicture(“C:\\test.bmp”, true);
}
April 11th, 2008 at 12:02 pm
VBScript:
Sub CreateDoc()
OA1.Open “C:\\1.doc”
Set objWord = OA1.ActiveDocument
objWord.Application.Selection.EndKey 6
OA1.WordInsertBreak 6
OA1.WordInsertPicture “C:\\1.bmp”, False
End Sub