Click here to Skip to main content
15,896,040 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
#realJSOP23-Sep-08 23:42
professional#realJSOP23-Sep-08 23:42 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
RugbyLeague24-Sep-08 0:50
RugbyLeague24-Sep-08 0:50 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
darkelv24-Sep-08 1:50
darkelv24-Sep-08 1:50 
GeneralRe: how to write prime numbers programe in C# 2005 Pin
#realJSOP24-Sep-08 9:40
professional#realJSOP24-Sep-08 9:40 
Questioncan anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together.. Pin
maifs23-Sep-08 20:32
maifs23-Sep-08 20:32 
AnswerRe: can anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together.. Pin
Mark Salsbery24-Sep-08 8:37
Mark Salsbery24-Sep-08 8:37 
QuestionHeaders and Footers in Office 2007 object model Pin
Viram23-Sep-08 20:20
Viram23-Sep-08 20:20 
QuestionExport as PDF file from C# page Pin
r aa j23-Sep-08 20:09
r aa j23-Sep-08 20:09 
hi all,
I want export the pdf file.and I am using following code.In my system .But an error is displaying like adobe readercould not open 'down.pdf' because it is either not a supported file type or because the file has been damaged...



DataSet Ds = FillGrid2(sessionvalue, cid, cmid, crid, pid, sdate, edate);

Response.Clear();
Response.AppendHeader("Content-Type", "application/pdf");
Response.AppendHeader("Content-disposition", "attachment; filename=Download.pdf");
string str = "<table style='border:1px solid #000000;'>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Client: </b>" + client + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Campaign: </b>" + campaign + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Report Summary</b>" + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td>" + "Type" + "</td>";
str += "<td>" + "Impression" + "</td>";
str += "<td>" + "Clicks" + "</td>";
str += "<td>" + "Start Date" + "</td>";
str += "<td>" + "End Date" + "</td>";
str += "</tr>";

for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
str += "<tr style='border:1px solid #000000;'>";
for (int j = 0; j < Ds.Tables[0].Columns.Count; j++)
{
str += "<td>" + Ds.Tables[0].Rows[i][j].ToString() + "</td>";
}
str += "</tr>";
}
str += "</table>";


Response.Write(str);

If anybody knows please reply me..

thanks...

Raaj

Generalcreate family tree with C# visual basic 2005 Pin
jielun23-Sep-08 19:54
jielun23-Sep-08 19:54 
GeneralRe: create family tree with C# visual basic 2005 Pin
John_Adams23-Sep-08 21:43
John_Adams23-Sep-08 21:43 
GeneralRe: create family tree with C# visual basic 2005 Pin
ChandraRam24-Sep-08 0:04
ChandraRam24-Sep-08 0:04 
Questioncreate family tree with C# visual basic 2005 pls help me Pin
jielun23-Sep-08 19:53
jielun23-Sep-08 19:53 
AnswerRe: create family tree with C# visual basic 2005 pls help me Pin
John_Adams23-Sep-08 21:40
John_Adams23-Sep-08 21:40 
QuestionRequirement: How I can get all the applications registered in windows os includes with Administative Tools Pin
apparikiran23-Sep-08 19:53
apparikiran23-Sep-08 19:53 
AnswerRe: Requirement: How I can get all the applications registered in windows os includes with Administative Tools Pin
Tamer Oz23-Sep-08 21:36
Tamer Oz23-Sep-08 21:36 
QuestionRequirement: Getting all the installed exe's in windows os and Administrative tools Pin
apparikiran23-Sep-08 19:48
apparikiran23-Sep-08 19:48 
QuestionHow to marshal string array from C# to VB? Pin
nicolus23-Sep-08 19:35
nicolus23-Sep-08 19:35 
AnswerRe: How to marshal string array from C# to VB? Pin
oobimoo24-Sep-08 1:18
oobimoo24-Sep-08 1:18 
GeneralRe: How to marshal string array from C# to VB? Pin
nicolus24-Sep-08 23:10
nicolus24-Sep-08 23:10 
QuestionC# Word automation Pin
g_dev23-Sep-08 18:27
g_dev23-Sep-08 18:27 
QuestionRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 17:52
myNameIsRon23-Sep-08 17:52 
AnswerRe: Invoke/Thread Pin
N a v a n e e t h23-Sep-08 17:56
N a v a n e e t h23-Sep-08 17:56 
GeneralRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 19:24
myNameIsRon23-Sep-08 19:24 
AnswerRe: Invoke/Thread Pin
Mohammad Dayyan23-Sep-08 18:51
Mohammad Dayyan23-Sep-08 18:51 
GeneralRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 19:30
myNameIsRon23-Sep-08 19:30 

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.