I am developing an online scanning solution. I have done the scanning part, saving the file, and transferring it to a remote server.
I need to pass some information to my control so that I can tell it where to send teh file and what ids to use. I scoured the web looking for this and I found I should use the PropertyBag.
I created the following (one is show for example)
Using the Package and Deployment Wizard I created a internet deployment package and marked the file safe for initialisation and safe for scripting.
I use the following code to instansiate the activex control on the web page
<PARAM NAME=DOCID VALUE="3655">
The cab is located on the server with the html code.
It attempts to load the file and succeeds but no form is displayed
I am at a loss as to what is happening
Can someone help me here
Public Property Get DocID() As String
DocID = lblDocID.Caption
Public Property Let DocID(ByVal New_DocID As String)
lblDocID.Caption() = New_DocID
'Load property values from storage
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
lblDocID.Caption = PropBag.ReadProperty("DocID", "")
lblDest.Caption = PropBag.ReadProperty("Destination", "")
m_IPAddress = PropBag.ReadProperty("IPAddress", m_def_IPAddress)
m_WebAddress = PropBag.ReadProperty("WebAddress", m_def_WebAddress)
'Write property values to storage
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("DocID", lblDocID.Caption, "")
Call PropBag.WriteProperty("Destination", lblDest.Caption, "")
Call PropBag.WriteProperty("IPAddress", m_IPAddress, m_def_IPAddress)
Call PropBag.WriteProperty("WebAddress", m_WebAddress, m_def_WebAddress)