Forum Moderators: phranque

Message Too Old, No Replies

ActiveX must be on!

         

GueillaGrowers

1:16 pm on May 17, 2004 (gmt 0)

10+ Year Member



Help anyone,

I have this script which works real fine but when i have my security settings on normal it stops working partially (doesn't post the info into my dbase). How can I avoid or change this so I can get my script working?


code:--------------------------------------------------------------------------------<SCRIPT LANGUAGE="VBScript">
Sub ReadFile()
'on error resume next
Dim oApp
Dim oDoc
Dim oMergedDoc
on error resume next
' Create an instance of Word.
Set oApp = CreateObject("Word.Application")
' Create our data file.
oApp.Visible = True

oApp.Documents.Open BestandsNaam.value

Set oDoc = oApp.ActiveDocument.Range(0,0)
oDoc.WholeStory
'oDoc.Text = "hallo"
TekstInput.value = oDoc.Text
oApp.ActiveDocument.close False
oApp.close false
Set oApp=Nothing
End Sub
</SCRIPT>--------------------------------------------------------------------------------

Any help?

txbakers

1:38 pm on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Lower your security settings. You're creating objects on the local machine and need to have the permission to do that.

GueillaGrowers

1:53 pm on May 17, 2004 (gmt 0)

10+ Year Member



Yep, been there done that,

Problem is that the script should work for the client side and if their settings are on normal the data won't be inserted into my database. Which is the whole idea of this script. So any other idea where how to fix this.

All suggestions are welcome!

txbakers

4:51 pm on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want the clients to be able to use this, and the client wants to be able to do this, then the client will have to adjust their settings.

Period.

There is no work around for security settings.

Either they follow your specs, or they can't use the program.

danieljean

8:05 pm on May 18, 2004 (gmt 0)

10+ Year Member



Either that, or handle that functionality with technologies that do not rely on the user having IE installed on Windows.

Is opening a word document really necessary to get people's information?

GueillaGrowers

7:43 am on May 19, 2004 (gmt 0)

10+ Year Member



Opening the document isn't actually the problem but when clients have their security settings on high or normal the active X is turned off it will not store the data(content) from the worddocument into my database. The content(text) from the worddocument is afterwards saved into my database using plain text. But this suddenly doesn't happen if the active X components are turned off.

Still searching for the right solution!

danieljean

11:47 am on May 19, 2004 (gmt 0)

10+ Year Member



Why on earth can't you use just regular html form fields?

Unless I really, really, really needed to, I would not lower my security rating for a site- especially if I did not need it. You're likely putting off a lot of people by doing this.