Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: "New" Pattern Pin
jschell15-Sep-23 12:24
jschell15-Sep-23 12:24 
GeneralRe: "New" Pattern Pin
Gerry Schmitz15-Sep-23 12:40
mveGerry Schmitz15-Sep-23 12:40 
QuestionHow to .sql scripts during application installation Pin
Member 1128773113-Sep-23 1:07
Member 1128773113-Sep-23 1:07 
AnswerRe: How to .sql scripts during application installation Pin
Richard Andrew x6413-Sep-23 3:32
professionalRichard Andrew x6413-Sep-23 3:32 
AnswerRe: How to .sql scripts during application installation Pin
RedDk13-Sep-23 8:56
RedDk13-Sep-23 8:56 
AnswerRe: How to .sql scripts during application installation Pin
Eddy Vluggen14-Sep-23 14:32
professionalEddy Vluggen14-Sep-23 14:32 
QuestionData Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Fokwa Divine5-Sep-23 4:10
Fokwa Divine5-Sep-23 4:10 
AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Ron Nicholson5-Sep-23 4:43
professionalRon Nicholson5-Sep-23 4:43 
I'm doing something similar with product called Gembox. In a nutshell, I create the excel file and save it to a path under the website. In my case it is normally a folder called ExcelTemp. I save the file to that folder then use the following code to save it on the enduser's pc. This code will prompt them to save it unless the browser is set to automatically put it somewhere.
C#
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.IO.Path.GetFileName(fileName));
Response.Charset = "";
Response.WriteFile(fileName);
Response.End();

The code need the fileName as a string.

HTH
Jack of all trades, master of none, though often times better than master of one.

AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Richard Deeming5-Sep-23 4:48
mveRichard Deeming5-Sep-23 4:48 
AnswerRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
Fokwa Divine5-Sep-23 7:12
Fokwa Divine5-Sep-23 7:12 
GeneralRe: Data Export to Excel using HSSFWorkbook Works Locally but Not on Test Pin
jschell6-Sep-23 6:28
jschell6-Sep-23 6:28 
QuestionBluetooth set as com port in c# Pin
Jan 19472-Sep-23 13:54
Jan 19472-Sep-23 13:54 
AnswerRe: Bluetooth set as com port in c# Pin
Richard MacCutchan2-Sep-23 21:04
mveRichard MacCutchan2-Sep-23 21:04 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19472-Sep-23 21:47
Jan 19472-Sep-23 21:47 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan2-Sep-23 22:13
mveRichard MacCutchan2-Sep-23 22:13 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19472-Sep-23 23:42
Jan 19472-Sep-23 23:42 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:23
mveRichard MacCutchan3-Sep-23 2:23 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 2:35
Jan 19473-Sep-23 2:35 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:43
mveRichard MacCutchan3-Sep-23 2:43 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 11:44
Jan 19473-Sep-23 11:44 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:54
mveRichard MacCutchan3-Sep-23 2:54 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 11:38
Jan 19473-Sep-23 11:38 
QuestionNullable foreign key causes runtime error in OData service Pin
Alex Wright 202229-Aug-23 5:42
Alex Wright 202229-Aug-23 5:42 
QuestionRe: Nullable foreign key causes runtime error in OData service Pin
Richard MacCutchan29-Aug-23 6:21
mveRichard MacCutchan29-Aug-23 6:21 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Alex Wright 202229-Aug-23 6:47
Alex Wright 202229-Aug-23 6:47 

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.