Click here to Skip to main content
15,908,634 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# networking - data sent across network with tcpclient class using rjindael encryption truncates. Pin
Rei Miyasaka22-Feb-05 22:09
Rei Miyasaka22-Feb-05 22:09 
GeneralRe: c# networking - data sent across network with tcpclient class using rjindael encryption truncates. Pin
Member 154579523-Feb-05 13:50
Member 154579523-Feb-05 13:50 
GeneralRe: DataTables and DataSets Pin
myNameIsRon21-Feb-05 17:10
myNameIsRon21-Feb-05 17:10 
GeneralRe: DataTables and DataSets Pin
Besinci23-Feb-05 7:24
Besinci23-Feb-05 7:24 
GeneralAssembly upgrade problems Pin
Mathew Hall21-Feb-05 16:03
Mathew Hall21-Feb-05 16:03 
GeneralSending an object through remoting Pin
Kelvin Goh21-Feb-05 13:51
Kelvin Goh21-Feb-05 13:51 
GeneralRe: Sending an object through remoting Pin
S. Senthil Kumar21-Feb-05 15:17
S. Senthil Kumar21-Feb-05 15:17 
QuestionHow Avoid Dialog Box Open/Save Files Pin
see0721-Feb-05 12:46
see0721-Feb-05 12:46 
Unsure | :~ Hello:
I’m sending a Crystal Reports’s report to Word, but a dialog box is opening where user is asking if wish open/save file.
I’d like avoid this dialog emerges and report be displayed directly in screen as user would press open button.
I’m attaching code I’m using:

string ExportPath = sRuta + "CrystalReport1" + ".doc";

crvReportes.ReportSource = cr;
CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new CrystalDecisions.Shared.DiskFileDestinationOptions();

cr.ExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;

cr.ExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.WordForWindows;
DiskOpts.DiskFileName = ExportPath;

cr.ExportOptions.DestinationOptions = DiskOpts;

cr.Export();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/msword";
Response.WriteFile(ExportPath);
Response.Flush();
Response.Close();
System.IO.File.Delete(ExportPath);

Where crvReportes is my CrystalReportViewer y cr is my ReoprtDocument
I’ll thank your help.
A.L.


AnswerRe: How Avoid Dialog Box Open/Save Files Pin
Heath Stewart21-Feb-05 13:12
protectorHeath Stewart21-Feb-05 13:12 
GeneralRe: How Avoid Dialog Box Open/Save Files Pin
see0722-Feb-05 7:55
see0722-Feb-05 7:55 
GeneralRe: How Avoid Dialog Box Open/Save Files Pin
Heath Stewart22-Feb-05 8:21
protectorHeath Stewart22-Feb-05 8:21 
QuestionLike foreach but from end to begining ? Pin
ektoras21-Feb-05 12:14
ektoras21-Feb-05 12:14 
AnswerRe: Like foreach but from end to begining ? Pin
Heath Stewart21-Feb-05 12:21
protectorHeath Stewart21-Feb-05 12:21 
GeneralRe: Like foreach but from end to begining ? Pin
ektoras21-Feb-05 12:42
ektoras21-Feb-05 12:42 
GeneralRe: Like foreach but from end to begining ? Pin
Heath Stewart21-Feb-05 12:57
protectorHeath Stewart21-Feb-05 12:57 
GeneralRe: Like foreach but from end to begining ? Pin
Rei Miyasaka22-Feb-05 17:14
Rei Miyasaka22-Feb-05 17:14 
GeneralRe: Like foreach but from end to begining ? Pin
ektoras23-Feb-05 11:52
ektoras23-Feb-05 11:52 
GeneralRe: Like foreach but from end to begining ? Pin
Rei Miyasaka23-Feb-05 11:56
Rei Miyasaka23-Feb-05 11:56 
AnswerRe: Like foreach but from end to begining ? Pin
Dominic Farr22-Feb-05 11:16
Dominic Farr22-Feb-05 11:16 
GeneralRe: Like foreach but from end to begining ? Pin
ektoras23-Feb-05 11:55
ektoras23-Feb-05 11:55 
GeneralDetermine locally installed componnet in C# Pin
Liu Shuai21-Feb-05 12:01
Liu Shuai21-Feb-05 12:01 
GeneralRe: Determine locally installed componnet in C# Pin
Heath Stewart21-Feb-05 12:52
protectorHeath Stewart21-Feb-05 12:52 
GeneralC# and lists Pin
Sasuko21-Feb-05 11:54
Sasuko21-Feb-05 11:54 
GeneralRe: C# and lists Pin
Heath Stewart21-Feb-05 12:47
protectorHeath Stewart21-Feb-05 12:47 
GeneralRe: C# and lists Pin
Anonymous21-Feb-05 22:18
Anonymous21-Feb-05 22:18 

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.