Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Creating Word Document with JavaScript
- From: trojani2000 at hotmail.com (Troy III Ajnej)
- Subject: [Javascript] Creating Word Document with JavaScript
- Date: Sat Oct 22 22:51:37 2005
If it is posible with excel, with word can't be more difficult:
see this example: (it's from jscript 5.x documentation)
var ExcelSheet;
ExcelApp = new ActiveXObject("Excel.Application");
ExcelSheet = new ActiveXObject("Excel.Sheet");
// Make Excel visible through the Application object.
ExcelSheet.Application.Visible = true;
// Place some text in the first cell of the sheet.
ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";
// Save the sheet.
ExcelSheet.SaveAs("C:\\TEST.XLS");
// Close Excel with the Quit method on the Application object.
ExcelSheet.Application.Quit();
write this in a tex file and save it as *.js doubleclick and see what
happens! Any further comment is sufficient.
The only thing you need to nkow further is to see the commands neded to
enter ms word formatings etc, you can make the app invisible dourin the
operation if f you like.
<br><br><br><html><DIV>
<P align=center>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>Troy
III<BR>progressive art
enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</P></DIV></html>
<BLOCKQUOTE style='PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #A0C6E5
2px solid; MARGIN-RIGHT: 0px'><font
style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'><hr color=#A0C6E5
size=1>
From: <i>"Del Wegener" <del@xxxxxxxxxx></i><br>Reply-To:
<i>"\[JavaScript List\]" <javascript@xxxxxxxxxx></i><br>To:
<i><javascript@xxxxxxxxxx></i><br>Subject: <i>[Javascript] Creating
Word Document with JavaScript</i><br>Date: <i>Sat, 22 Oct 2005 09:32:39
-0500</i><br>>Good Morning;<br>><br>>I have developed a simple flat
file database consisting of JS Include<br>>files containing mathematics
definitions, formulas, properties, etc. I<br>>have also written several
little JS programs which place identified<br>>database items on a web
page or on interactive flashcards. For example<br>>the function call
myPut('Definition',def_null_set) returns the word<br>>Definition followed
by the database item named def_null_set all
properly<br>>formatted.<br>>See<br>>http://www.drdelmath.com/jeffco_intermediate_algebra/chapter_summaries/jeffco_intermediate_algebra_chapter1_summary.htm<br>><br>>I
would like to write similar JS programs which would create entries
in<br>>an MS Word document instead of web pages. Ideally the program
would<br>>request a list of items to be included and would create a Word
document<br>>containing those items.<br>><br>>Is this possible ?
Can anyone point me to a source where I might learn<br>>how to do this
?<br>><br>>Right now I do not have time to do all of this with a real
database.<br>><br>>Thanks for any
pointers.<br>><br>>Del<br>>del@xxxxxxxxxx<br>>www.delweg.com<br>>www.drdelmath.com<br>><br>>_______________________________________________<br>>Javascript
mailing
list<br>>Javascript@xxxxxxxxxx<br>>https://lists.LaTech.edu/mailman/listinfo/javascript<br></font></BLOCKQUOTE>
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
- References:
- [Javascript] Creating Word Document with JavaScript
- From: Del Wegener
- [Javascript] Creating Word Document with JavaScript
- Prev by Date: [Javascript] Creating Word Document with JavaScript
- Next by Date: [Javascript] Something better than getElementById
- Previous by thread: [Javascript] Creating Word Document with JavaScript
- Next by thread: [Javascript] Fire up a function in another frame?
- Index(es):