|
-
April 13th, 2001, 07:34 AM
#1
VB script
On a asp page trying to create an rtf file from a database using VBscript. I would like to create the file only upon a button click.
Set fso = CreateObject("Scripting.FileSystemObject")
gives this error
Active X component can't create object.
This only occurs if it is inside <script></script> tags. It works if the file is created on page load and code is in <% %>.
Is there a way around this?
Any suggestions will be greatly appreciated, and I am reletively new to VB programming.
TIA
DJS
-
April 13th, 2001, 09:45 AM
#2
Re: VB script
The reason you get the error is because the browser the script runs in, won't allow any scripts to access the disk (except for cookies).
When the code is between <% %>, it's asp, and asp is ran at the server (wich in most cases does allow file management).
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|