Click here to Skip to main content
15,912,578 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: OnPaint Pin
Thomas Stockwell7-Aug-06 11:32
professionalThomas Stockwell7-Aug-06 11:32 
QuestionContextMenuStrip submenu problem [modified] Pin
jvikard6-Aug-06 22:45
jvikard6-Aug-06 22:45 
AnswerRe: ContextMenuStrip submenu problem Pin
Rizwan Bashir7-Aug-06 2:10
Rizwan Bashir7-Aug-06 2:10 
QuestionCombobox Dropdown Pin
tibmark6-Aug-06 22:19
tibmark6-Aug-06 22:19 
AnswerRe: Combobox Dropdown Pin
Rizwan Bashir7-Aug-06 2:12
Rizwan Bashir7-Aug-06 2:12 
GeneralRe: Combobox Dropdown Pin
tibmark7-Aug-06 3:15
tibmark7-Aug-06 3:15 
GeneralRe: Combobox Dropdown Pin
Thomas Stockwell7-Aug-06 11:50
professionalThomas Stockwell7-Aug-06 11:50 
Questionproblem when exporting datagrid to excel [modified] Pin
ii_noname_ii6-Aug-06 22:19
ii_noname_ii6-Aug-06 22:19 
Hi,

I've seen people complain about this error other places, but noone ever answers them...
Can't find solution to this erro message:
'c:\documents....\...xls' could not be found. Check the selling blah blah blah
(it appears in excel when clicking the send to excel button)

It seems it's trying to open a file that doesn't exist yet or something...
Then I can click the button on my apsx page again, and it will work fine in excel...

But any help solving this problem will be very appreciated...
I'm sure some of you have seen this probelm before? :s


-- modified at 4:20 Monday 7th August, 2006
the code:

Response.Clear()
Response.Buffer = True
Response.AddHeader("Content-Disposition", "attachment;filename=Wells.xls")
Response.ContentType = "application/vnd.ms-excel"
Me.EnableViewState = False
Response.Charset = String.Empty
Dim myTextWriter As New System.IO.StringWriter()
Dim myHtmlTextWriter As New System.Web.UI.HtmlTextWriter(myTextWriter)
Exceldg.RenderControl(myHtmlTextWriter)
Response.Write(myTextWriter.ToString())
Response.End()

when i remove the line Response.AddHeader("Content-Disposition", "attachment;filename=Wells.xls")
it just opens the excel inside the browser without errors, so i'm guessing error is from that line for some unknown (to me) reason
AnswerRe: problem when exporting datagrid to excel Pin
ii_noname_ii6-Aug-06 22:40
ii_noname_ii6-Aug-06 22:40 
QuestionDateTimePicker Pin
Maira K6-Aug-06 22:05
Maira K6-Aug-06 22:05 
QuestionSimulate Mouse Click without using API Pin
The ANZAC6-Aug-06 22:04
The ANZAC6-Aug-06 22:04 
AnswerRe: Simulate Mouse Click without using API Pin
Colin Angus Mackay6-Aug-06 22:22
Colin Angus Mackay6-Aug-06 22:22 
GeneralRe: Simulate Mouse Click without using API Pin
The ANZAC6-Aug-06 23:35
The ANZAC6-Aug-06 23:35 
Questionchange password Pin
pratap ankesh6-Aug-06 19:52
pratap ankesh6-Aug-06 19:52 
AnswerRe: change password Pin
hansemann6-Aug-06 21:17
hansemann6-Aug-06 21:17 
Questiondisplaying info from database [urgent pls help] Pin
kyosugi6-Aug-06 4:40
kyosugi6-Aug-06 4:40 
GeneralRe: displaying info from database [urgent pls help] Pin
Dave Sexton7-Aug-06 2:19
Dave Sexton7-Aug-06 2:19 
Questionmp3 file Pin
md_refay6-Aug-06 2:59
md_refay6-Aug-06 2:59 
AnswerRe: mp3 file Pin
Thomas Stockwell7-Aug-06 11:58
professionalThomas Stockwell7-Aug-06 11:58 
GeneralRe: mp3 file Pin
husni.adil10-Aug-06 17:44
husni.adil10-Aug-06 17:44 
QuestionC++ to VB.Net Pin
KoolJboy6-Aug-06 1:21
KoolJboy6-Aug-06 1:21 
AnswerRe: C++ to VB.Net Pin
Christian Graus6-Aug-06 1:27
protectorChristian Graus6-Aug-06 1:27 
GeneralRe: C++ to VB.Net Pin
KoolJboy6-Aug-06 2:31
KoolJboy6-Aug-06 2:31 
QuestionHow to differ between two same event in the same control ? Pin
Assaf826-Aug-06 0:23
Assaf826-Aug-06 0:23 
AnswerRe: How to differ between two same event in the same control ? Pin
Christian Graus6-Aug-06 1:39
protectorChristian Graus6-Aug-06 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.