#133378 - 2005-02-04 04:54 PM
Tutorial? & Open office doc w/script
|
LittleED
Fresh Scripter
Registered: 2005-02-04
Posts: 6
|
I've only been working with KiXtart for about a week now, so I'm greener then grass in the spring time. I don't have a lot of programming knowledge, but I'm trying to learn.
First Question: Is there a KiXtart tutorial I can learn from?
Second Question: I've been reading the help file trying to learn from it. It has an example of some code that will open a Excel spreesheet and put data in it. I tried it and it worked great. So I wanted to experiment with opening a MS Word doc. Well I figured out how to get MS Word open, but when I tried to get a new doc to open, I just got errors. I would also like to know how can I open a MS Word doc that I have saved on my hard drive. Anyone have some ideas?
Here is my code. I've commented the lines that I tried and didn't work.
$oWD = CreateObject ("Word.application")
if @error = 0 $oWD.visible = 1; make Word visible to the user ;$b=Open ( 3 , "c:\kixs\LeaveRequest.doc" , 5); Open file in Word ;$rc=$oWD.Document1.new ; Open new document in Word else ? @error + " / " @serror endif
Thanks, Little E
|
|
Top
|
|
|
|
#133380 - 2005-02-04 06:00 PM
Re: Tutorial? & Open office doc w/script
|
LittleED
Fresh Scripter
Registered: 2005-02-04
Posts: 6
|
Actually both. I'd like to learn both ways. Thank you for the code you sent. I tried it and it worked great!! 
What if I want to open a new doc and manipulate it with KiX? Will I need to use COM to do that? If so, could you give me more info on COM? That is territory I've never traveled before.
|
|
Top
|
|
|
|
#133384 - 2005-02-07 03:42 PM
Re: Tutorial? & Open office doc w/script
|
LittleED
Fresh Scripter
Registered: 2005-02-04
Posts: 6
|
Thank you for the info on the book. I have looked into it and I will see what I can do about getting it. It looks like it could help me a bunch.
Thank you both for your compliments on my profile. I just followed your website instructions. If this book about KiXtart is as user friendly as your instructions, I should be able to pick up on this script stuff without any problems.
Sorry for not putting my code between [CODE] tags. I will try to do better next time.
Little E
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1057 anonymous users online.
|
|
|