DJS
April 13th, 2001, 07:34 AM
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
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