I call MS Word from my eBook so that the user can make notes in his familiar environment. It works fine. The problem is that when the user modifies the .doc file, he is asked by Word if he wants to save the file. What happens is that apparently the file is only saved in the c:\windows\temp directory so that the changes are saved as long as the ebook programs runs, but the next time the user opens the eBook, the changes are lost. How do I copy the temp document into the directory that has the ebook.exe file. Or am I missing something?
Posted on: 7:00 pm on August 2, 2002
EBookCompiler
How about this
You have a flag in an INI file saying whether the file has been copied yet
If yes, you start the file
If no, you copy the file, update the INI, then start it,
Something like doit.as (lnk <A HREF="#!doit.as">Click</A> containing something like:
It works fine changing "IF( {f1} <> 0 )" into "IF( {f1} = 0 )" using an immediate link like this: <A HREF="##INIREAD('f1','myconfig.ini','word','copy','0') ##IF( {f1} <> 0 ) ....">Click Here</A> and suppressing '0' in INIWRITE('1','myconfig.ini','word','copy','0') after getting a message "wrong number of parameters"
But for some reason I get a message: "Error opening file c:\windows\temp\.......\doit.as" when I use an internal script file link: <A HREF="#!doit.as">Click Here</A>
I entered the script as the value of an Activ Variable called "doit", Type long HTML fragment Thanks for your help. What am I doing wrong?
Boris
Posted on: 6:21 am on August 7, 2002
Boris Clair
I hope you experts had a good time with my last post :-)
So far I had used only activ variables, no activ scripts. Although the help of the E-Book Compiler is very well made, I did not understand that the scripts had to be saved as all other files in the compile directory..... Finally the light came! When I save my script in this directory with a .as extension everything works fine. Hope this helps the new activ Script users.
Posted on: 2:53 am on August 10, 2002
EBookCompiler
By jove, I think he's got it!
Glad you've got this one solved
Posted on: 12:48 am on August 12, 2002
Boris Clair
Some learn faster than others :-)
Is there a way to open an external program adding parameters? What is the syntax?
I want to open a long MS Word .doc document using "bookmarks" so that the document opens at a specified place, not the first line of the page.
Thanks for any help,
Boris
Posted on: 7:27 pm on August 22, 2002
EBookCompiler
I don't know if Word has this feature (open with parameters)
If it did, and you knew how Word did it, you could presumably just add the parameters to the OPEN or RUN command
Posted on: 6:49 pm on August 23, 2002
Boris Clair
Thanks.
I'm trying to figure out if MSWord has this feature. Anybody knows if and how it works?
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures
Our sites use cookies, some of which may already be set on your computer. Use of our site
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.