"Rob Bonino" <rbonino@comtechpst.com> wrote:
>
>
> Is there a good way (active x) I am sure, that you can save a file, (say MS
> Word 97) that you have just modified with active x commands in vee (6.0), to
> a new file path & subdirectory? In other words, can you use a statement or
> function in vee to create a new subdirectory and then save to it.
Sure. Two ways at least:
(1) use DOS commands (mkdir) and the "Execute Program" object.
This is probably most robust and straightforward.
(2) use system calls via the system DLL's (system32.dll). Just import
as compiled functions and go at it.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
>
>
> Is there a good way (active x) I am sure, that you can save a file, (say MS
> Word 97) that you have just modified with active x commands in vee (6.0), to
> a new file path & subdirectory? In other words, can you use a statement or
> function in vee to create a new subdirectory and then save to it.
Sure. Two ways at least:
(1) use DOS commands (mkdir) and the "Execute Program" object.
This is probably most robust and straightforward.
(2) use system calls via the system DLL's (system32.dll). Just import
as compiled functions and go at it.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
you can just use the "File name selection" dialog box.
But you will have to teach your users how to use the Windows dialog box.
Specifically, they must click the "New Folder" icon (which looks like a
folder with sparks coming off the upper right corner) to create the new
folder (or series of folders) after navigating to the right starting path.
Note that this dialog box can also be used to delete or rename files (or
folders) prior to making a selection.
...david
David Sherrill
Agilent Technologies
Healthcare Solutions Group
(soon to become a part of Philips Medical Systems)
-----Original Message-----
From: Rob Bonino [mailto:rbonino@comtechpst.com]
Sent: Tuesday, April 10, 2001 10:55 AM
To: vrf@lvld.agilent.com
Subject: vrf saving files
Is there a good way (active x) I am sure, that you can save a file, (say MS
Word 97) that you have just modified with active x commands in vee (6.0), to
a new file path & subdirectory? In other words, can you use a statement or
function in vee to create a new subdirectory and then save to it. A 'save
as' function returns an error if the file path does not exist. I am looking
for a way to test the file path and create a new one if it does not exist.
This can be done in visual basic (similar to active x commands) using the
following functions as examples :
ChdDir
DirPresent
MkDir
ChangeFileOpenDirectory.
I do not have any of these functions in my active x libraries for MS Word
8.0 Object library.
Possibly there is another library I must load in to get these functions ?
Any help is appreciated & thank you to all who have helped me already.
Rob Bonino
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------