That's great but can i trouble u for some more info? I need to write to a word doc. I know how to write to a textfile using the filetxt.WriteLine method. Can u tell me what the format for writing to a word doc is please. I would really appreciate any help!
Mijulie
I would suggest to you to go into Word, select Tools --> Macros --> Record New Macro
And just go to town typing --
Once you're finished, then press the Stop button and open up the VBA editor to look at the code you created. That's the best trick I know of to find out how to interface with MSOffice Apps programatically.
I've found the solution, using the add method. Only thing is every time i write to it, it keeps going on the same line. I want to be able to move on to a new line when i have to. Does anyone know what the code for this might be,
Selection.InsertLine or something?
Okay, that seems pretty straight forward but how do I name and pass variables in as individual cell values. Is this very difficult, I can't seem to get it working myself. Any help would be appreciated!
Thanks,
Mijulie
Can anybody help me with the position of the table on the doc? It wont let me make the range anything higher than 35,35. It gives me an error if i inrease it saying "value out of range". How can i put it lower on the page so I can put a heading and some lines of writing above it? objWord.Selection.TypeParagraph has no affect at all!!! Please help, I fear i may lose my marbles!!!!
Can anyone tell me how to link to bookmark in a WSword document from an html link? I can open the document with the link, but it will not recognize the book mark.
This is what I have been trying
<A HREF="//hoursOfWork.doc#pay"
I have tried calling the bookmark from another word doc and it works, but the html call just opens the doc, but not at the bookmark
To Chris0001
dianal (Instructor)'s line is missing command for
Word document visible.
This is a part of VBA rather than VBScript after you
create a Object.
<script language="VBScript">
Dim objWord
Set objWord=CreateObject("Word.Application"
objWord.Visible = True ' This command for visibility
Ive never used ASP before only JSP and its completely different so im hoping one of u can help me out here.
Im starting a project next week using ASP's to write a contract in .doc and .pdf format.
The above should help me immensely with the word doc but i cant find anything about pdf out there.
Is there some sort of library anyone knows of that i could use?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.