J
John
Hello,
I have a VB.net app the sends an Excel file to the browser and it also need
to hide some fields on the form at the same time. But the form is not hiding
the controlls. The "Open/Save/Cancel" diaolog opens on the browser but the
page stays the same, the controls are not hidden. Below is a sample of the
code I'm using to send the file to the browser and hide the controls. What
am I doing wrong?
Sub SendReport(ByRef SaveFile As String)
tblMessage.Visible = False
lblMessage.Text = ""
'Response.Flush()
'Response.Close()
'Response.ClearContent()
'Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.WriteFile(SaveFile)
Response.End()
'Response.Flush()
'Response.Close()
Kill(SaveFile)
End Sub
Thanks,
John Wilhelm
(e-mail address removed)
I have a VB.net app the sends an Excel file to the browser and it also need
to hide some fields on the form at the same time. But the form is not hiding
the controlls. The "Open/Save/Cancel" diaolog opens on the browser but the
page stays the same, the controls are not hidden. Below is a sample of the
code I'm using to send the file to the browser and hide the controls. What
am I doing wrong?
Sub SendReport(ByRef SaveFile As String)
tblMessage.Visible = False
lblMessage.Text = ""
'Response.Flush()
'Response.Close()
'Response.ClearContent()
'Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.WriteFile(SaveFile)
Response.End()
'Response.Flush()
'Response.Close()
Kill(SaveFile)
End Sub
Thanks,
John Wilhelm
(e-mail address removed)