Mar 30, 2012, 8:35 PM
[CLOSED] Invalid procedure call or argument
We have a print button placed in a EXT window as shown in the code below.
Everything works fine with the Print function, except we had one user who complained that all of his web pages print fine except when using this "Print" button.
The user gets the following error:
"An error has occurred in the script on this page
Line 2021
Invalid procedure call or argument
Do you want to continue running scripts on this page
URL (always res://ieframe.dll/preview.dlg)
Any suggestions as to what could be causing this?
Thanks
Ravi Swaminathan
Everything works fine with the Print function, except we had one user who complained that all of his web pages print fine except when using this "Print" button.
The user gets the following error:
"An error has occurred in the script on this page
Line 2021
Invalid procedure call or argument
Do you want to continue running scripts on this page
URL (always res://ieframe.dll/preview.dlg)
Any suggestions as to what could be causing this?
Private Shared Function renderViewSpecWin(ByVal WindowsID As String, WindowTitle As String, TransId As String)
Using wViewSpec As New NetAlias.Window() With {.ID = WindowsID, .Width = "800", .Header = True, .Title = WindowTitle, .CloseAction = NetAlias.CloseAction.Close, .Height = "600"}
With wViewSpec
'Create a 'Back' for Panel
Dim tBar As New NetAlias.Toolbar()
tBar.Add(bBack)
Dim bPrinter As New NetAlias.Button("Print", String.Format("printSelection(document.getElementById('{0}_IFrame'));return false;", WindowsID)) With {.Icon = NetAlias.Icon.Printer}
tBar.Add(bPrinter)
.TopBar.Add(tBar)
With .Listeners
With .Close
.Handler = "grTransGrid.getStore().reload(null);"
End With
End With
.AutoLoad.Url = "TransGrid.aspx"
.AutoLoad.Method = NetAlias.HttpMethod.POST
.AutoLoad.Mode = NetAlias.LoadMode.IFrame
.AutoLoad.Params.Add(New NetAlias.Parameter("TransId", TransId))
.Render()
End With
End Using
End Function
Thanks
Ravi Swaminathan
Last edited by Daniil; Apr 06, 2012 at 7:09 PM.
Reason: [CLOSED]