Click here to Skip to main content
15,924,193 members
Home / Discussions / C#
   

C#

 
AnswerRe: The Switch Statement Pin
Guffa13-Oct-08 11:39
Guffa13-Oct-08 11:39 
AnswerRe: The Switch Statement Pin
Colin Angus Mackay13-Oct-08 12:05
Colin Angus Mackay13-Oct-08 12:05 
AnswerRe: The Switch Statement Pin
N a v a n e e t h13-Oct-08 16:07
N a v a n e e t h13-Oct-08 16:07 
QuestionThe GetDetailsOf() Method Pin
Ankit Rajpoot13-Oct-08 7:02
Ankit Rajpoot13-Oct-08 7:02 
AnswerRe: The GetDetailsOf() Method Pin
Dave Kreskowiak13-Oct-08 7:25
mveDave Kreskowiak13-Oct-08 7:25 
GeneralRe: The GetDetailsOf() Method Pin
Ankit Rajpoot13-Oct-08 7:30
Ankit Rajpoot13-Oct-08 7:30 
GeneralRe: The GetDetailsOf() Method Pin
Dave Kreskowiak13-Oct-08 9:07
mveDave Kreskowiak13-Oct-08 9:07 
Questionsave pdf on disk [modified] Pin
teddddddddddd13-Oct-08 5:11
teddddddddddd13-Oct-08 5:11 
Hi,

I have one problem and would like that when I click on the button is automatically saved me a report that the disk in pdf format. I can show it in pdf only does it can not be saved.

Anybody got any idea? I work in VS2003 asp.net (C #)

thanks
lp

private void Button1_Click(object sender, System.EventArgs e)
{
SqlConnection sqlConnection1 = new SqlConnection(ConfigurationSettings.AppSettings["povezava"]);
SqlDataAdapter da = new SqlDataAdapter("select * from posta1" , sqlConnection1 );
da.Fill(dataSet11,"posta1");
myReport.Load(Server.MapPath(Request.ApplicationPath)+"\\CrystalReport1.rpt");
MemoryStream oStream; // using System.IO
myReport.SetDataSource(dataSet11);
oStream = (MemoryStream)
myReport.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat );
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}

modified on Monday, October 13, 2008 4:06 PM

Question.NET Remoting doesn't work with windows service but does with console application Pin
MegaBlasterX13-Oct-08 5:07
MegaBlasterX13-Oct-08 5:07 
AnswerRe: .NET Remoting doesn't work with windows service but does with console application Pin
Pedram Behroozi13-Oct-08 8:32
Pedram Behroozi13-Oct-08 8:32 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
MegaBlasterX13-Oct-08 21:23
MegaBlasterX13-Oct-08 21:23 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
DaveyM6913-Oct-08 23:43
professionalDaveyM6913-Oct-08 23:43 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
Pedram Behroozi14-Oct-08 1:33
Pedram Behroozi14-Oct-08 1:33 
Questioniris recognition Pin
laswad13-Oct-08 5:06
laswad13-Oct-08 5:06 
AnswerRe: iris recognition Pin
Dave Kreskowiak13-Oct-08 5:22
mveDave Kreskowiak13-Oct-08 5:22 
QuestionHorizontally scrolling grid Pin
Chazzysb13-Oct-08 4:29
Chazzysb13-Oct-08 4:29 
AnswerRe: Horizontally scrolling grid Pin
Dave Kreskowiak13-Oct-08 5:26
mveDave Kreskowiak13-Oct-08 5:26 
GeneralRe: Horizontally scrolling grid Pin
Chazzysb13-Oct-08 6:43
Chazzysb13-Oct-08 6:43 
Questionexecuting a program by double clicking on a file shown in list view ( C# ) Pin
Gianpaolo Barci13-Oct-08 4:17
Gianpaolo Barci13-Oct-08 4:17 
AnswerRe: executing a program by double clicking on a file shown in list view ( C# ) Pin
SeMartens13-Oct-08 4:40
SeMartens13-Oct-08 4:40 
GeneralRe: executing a program by double clicking on a file shown in list view ( C# ) Pin
Gianpaolo Barci13-Oct-08 4:48
Gianpaolo Barci13-Oct-08 4:48 
GeneralRe: executing a program by double clicking on a file shown in list view ( C# ) Pin
SeMartens13-Oct-08 5:00
SeMartens13-Oct-08 5:00 
Generalexplaining better my program Pin
Gianpaolo Barci13-Oct-08 5:22
Gianpaolo Barci13-Oct-08 5:22 
GeneralRe: executing a program by double clicking on a file shown in list view ( C# ) Pin
Dave Kreskowiak13-Oct-08 5:01
mveDave Kreskowiak13-Oct-08 5:01 
GeneralRe: executing a program by double clicking on a file shown in list view ( C# ) Pin
Gianpaolo Barci13-Oct-08 5:29
Gianpaolo Barci13-Oct-08 5:29 

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.