Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
GeneralFile transfer from one folder to another folder Pin
Deepak Nigam5-Feb-08 9:55
Deepak Nigam5-Feb-08 9:55 
GeneralIgnore this post. Cross posted in the VB.NET forum Pin
Dave Kreskowiak5-Feb-08 10:38
mveDave Kreskowiak5-Feb-08 10:38 
GeneralDesign controls on a Panel Pin
Edmundisme5-Feb-08 9:29
Edmundisme5-Feb-08 9:29 
GeneralRe: Design controls on a Panel Pin
Wes Aday5-Feb-08 10:06
professionalWes Aday5-Feb-08 10:06 
GeneralRe: Design controls on a Panel Pin
Edmundisme5-Feb-08 10:12
Edmundisme5-Feb-08 10:12 
Questioncan C# make control transparent Pin
netJP12L5-Feb-08 9:17
netJP12L5-Feb-08 9:17 
AnswerRe: can C# make control transparent Pin
Giorgi Dalakishvili5-Feb-08 9:29
mentorGiorgi Dalakishvili5-Feb-08 9:29 
AnswerRe: can C# make control transparent Pin
Edmundisme5-Feb-08 9:58
Edmundisme5-Feb-08 9:58 
GeneralRe: can C# make control transparent Pin
netJP12L5-Feb-08 10:21
netJP12L5-Feb-08 10:21 
GeneralRe: can C# make control transparent Pin
Edmundisme5-Feb-08 13:33
Edmundisme5-Feb-08 13:33 
GeneralRe: can C# make control transparent Pin
Anthony Mushrow5-Feb-08 13:59
professionalAnthony Mushrow5-Feb-08 13:59 
QuestionException Handling architecture/framework? Pin
kumar.bs5-Feb-08 7:55
kumar.bs5-Feb-08 7:55 
AnswerRe: Exception Handling architecture/framework? Pin
eggsovereasy5-Feb-08 9:10
eggsovereasy5-Feb-08 9:10 
GeneralRe: Exception Handling architecture/framework? Pin
led mike5-Feb-08 12:08
led mike5-Feb-08 12:08 
GeneralRe: Exception Handling architecture/framework? Pin
kumar.bs5-Feb-08 13:05
kumar.bs5-Feb-08 13:05 
GeneralCrystal_Report Pin
simworld5-Feb-08 7:52
simworld5-Feb-08 7:52 
GeneralRe: Crystal_Report Pin
SABhatti5-Feb-08 9:40
SABhatti5-Feb-08 9:40 
I have converted this code from vb without testing, so please correct any syntax error ...
<br />
 DiskFileDestinationOptions DiskOpts = New DiskFileDestinationOptions();<br />
 // export options to hard disk<br />
 // oReport is a ReportDocument<br />
 oReport.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile;<br />
 // export option TYPE<br />
 oReport.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat;<br />
 // PDF file location and filename<br />
 DiskOpts.DiskFileName = ExportPath + requiredFilename;<br />
 // Destination options<br />
 oReport.ExportOptions.DestinationOptions = DiskOpts;<br />
 // Export<br />
 oReport.Export();<br />
 // clear cr viewer and report document<br />
 crViewer.ReportSource = null;<br />
 oReport.Dispose();<br />
 oReport = null;<br />
<br />
 // do this if you want to give the option to save or download the file, other wise go to Response.Redirect line at the end<br />
 Response.Clear();<br />
 Response.AppendHeader("Content-Disposition", "attachment; filename=filename.pdf");<br />
 Response.ContentType = "application/pdf";<br />
 Response.WriteFile(ExportPath + requiredFilename);<br />
 Response.End();<br />
<br />
 // if you just want to open the the file then just do this and skip the above lines from Response.Clear to Response.End<br />
<br />
 Response.Redirect(pdffilenameandpath, true);<br />
<br />


-----

GeneralRe: Crystal_Report Pin
simworld6-Feb-08 7:24
simworld6-Feb-08 7:24 
GeneralRe: Crystal_Report Pin
PIEBALDconsult5-Feb-08 13:51
mvePIEBALDconsult5-Feb-08 13:51 
GeneralReading XML attributes without knowing the element name Pin
hpjchobbes5-Feb-08 7:33
hpjchobbes5-Feb-08 7:33 
GeneralRe: Reading XML attributes without knowing the element name Pin
Le centriste5-Feb-08 7:40
Le centriste5-Feb-08 7:40 
GeneralRe: Reading XML attributes without knowing the element name Pin
hpjchobbes5-Feb-08 7:53
hpjchobbes5-Feb-08 7:53 
GeneralRe: Reading XML attributes without knowing the element name Pin
Le centriste5-Feb-08 8:37
Le centriste5-Feb-08 8:37 
GeneralDirectoryInfo.GetDirectories() Pin
PaulPrice5-Feb-08 7:21
PaulPrice5-Feb-08 7:21 
GeneralRe: DirectoryInfo.GetDirectories() Pin
Luc Pattyn5-Feb-08 7:31
sitebuilderLuc Pattyn5-Feb-08 7:31 

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.