GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




VBScript InputBox() Permission denied. Error 800A0046.

Click to view RSS...
Author VBScript InputBox() function doesn't work when running a script within GenoPro report generator
Posted Sunday, July 13, 2008 - Post #22090
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Important Contributors
FamilyTrees.GenoPro.com
Customers
Translator
GenoPro version: 2.0.1.6

Last Login: Tuesday, December 16, 2008
Posts: 390, Visits: 1,271
Dan,
I'm practising my programming and noticed that, within Genopro, the VBScript 'InputBox()' function doesn't work.
I got instead the error message: Permission denied. Error 800A0046.
Could you explain the problem?
Thank you,
JC


Edited: Sunday, July 13, 2008 by GenoProSupport
Posted Sunday, July 13, 2008 - Post #22091
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, February 3, 2026
Posts: 4,886, Visits: 22,803
MsgBox and InputBox are client-side interaction functions. The scripting engine within report generator has not been designed to be interactive. Ron bypassed the interaction by using an external Active X control for creating HTML forms allowing the user to change the report parameters.

According to the technical documentation, I need to do is implement IActiveScriptSiteWindow...


Edited: Sunday, July 13, 2008 by GenoProSupport
Posted Sunday, July 13, 2008 - Post #22092
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, February 3, 2026
Posts: 4,886, Visits: 22,803
I made an update to support MsgBox and InputBox.  If you download and install http://www.genopro.com/download/InstallGenoPro.2.0.1.6.exe, you will get the changes including the missing Contacts column.

Feel free to download the attachment Interactive MsgBox.zip to get started.

nResult = MsgBox("Are you sure you want to continue?", vbYesNoCancel, "GenoPro Report Generator")
If (nResult = vbYes) Then
 Report.WriteLn "Continue"
Else
 Report.WriteLn "Do NOT Continue"
End If


Interactive MsgBox.zip (153 views, 727 bytes)

Edited: Sunday, July 13, 2008 by GenoProSupport
Posted Sunday, July 13, 2008 - Post #22094
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Important Contributors
FamilyTrees.GenoPro.com
Customers
Translator
GenoPro version: 2.0.1.6

Last Login: Tuesday, December 16, 2008
Posts: 390, Visits: 1,271
Thanks Dan,
Your brief Interactive MsgBox skin works. That is with VBScript.
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.
Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage?
JC


Edited: Sunday, July 13, 2008 by GenoProSupport
Posted Sunday, July 13, 2008 - Post #22095
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, February 3, 2026
Posts: 4,886, Visits: 22,803
jcguasp (7/13/2008)
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.
Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage?

GenoPro's report generator does not block anything.  The message Permission Denied was displayed by the VBScript engine after querying GenoPro for the interface IActiveScriptSiteWindow.  Since GenoPro was not supporting IActiveScriptSiteWindow and this interface was necessary to display a message box, then the script engine concluded the best error would be persmission denied.

I don't know about the JScript window.prompt() function.  I am learning scripting as you do...

Posted Monday, July 14, 2008 - Post #22097
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 3,487, Visits: 27,240
jcguasp (7/13/2008)
I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.

My understanding is that the 'window' object is only available in a web browser, hence cannot be used from the Report Generator, only when running the script from an HTML page under browser control.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, July 14, 2008 by Ron


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse