Her er koden fra activeX functionen, de problemer jeg har er i øjeblikket, at hvis jeg sætter me.visible = true få jeg en fejl ude på asp siden. Nonmodal...,
set ..... er udmarkeret fordi det også har give problemer, med variabl or object.. not set. det fungere nu ved at set object... er lagt ud i et clientside script, hvilket dog ikke er holdbart i længden )0:
Public Sub SendFile(ByVal DocumentID, ByVal ProjectID, ByVal FileName, ByVal DocumentType, ByVal FileDate, objFileControl) \'------------------------------------------------------------------------------------------- \' Metode: SendFile \' Beskrivelse: Sender en fil til serveren \'------------------------------------------------------------------------------------------- \' Dim objFileControl As Object Dim hdlFileNo As Long Dim bytData() As Byte Dim strFilePath As String Dim lngBytesSent As Long Dim lngFileSize As Long Dim lngChunkSize As Long Dim lngDataSize As Long Dim lngPackSize As Long Dim packbuf() As Byte Dim strErrMsg As String Dim lngProjectID As Long Dim lngDocumentType As Long Dim dtmFileDate As Date Dim lngIDDocument As Long
On Error GoTo SF_ErrorHandler
\' Me.Visible = True
\' Set objFileControl = CreateObject(\"PRSProjectUnivers.clsPRSProjectUnivers\", strServerName)
hdlFileNo = FreeFile Open FileName For Binary Access Read As #hdlFileNo
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.