Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: ReadOnly Radio Button? Pin
Kamrul Hasan14-Nov-05 6:24
Kamrul Hasan14-Nov-05 6:24 
GeneralRe: ReadOnly Radio Button? Pin
rich_wenger14-Nov-05 8:44
rich_wenger14-Nov-05 8:44 
GeneralRe: ReadOnly Radio Button? Pin
Kamrul Hasan15-Nov-05 2:12
Kamrul Hasan15-Nov-05 2:12 
QuestionHaving problems with getting current username in Windows... Pin
VampireLord12-Nov-05 7:35
VampireLord12-Nov-05 7:35 
AnswerRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 8:12
Colin Angus Mackay12-Nov-05 8:12 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 8:20
VampireLord12-Nov-05 8:20 
GeneralRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 8:27
Colin Angus Mackay12-Nov-05 8:27 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 8:43
VampireLord12-Nov-05 8:43 
GeneralRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 11:35
Colin Angus Mackay12-Nov-05 11:35 
AnswerRe: Having problems with getting current username in Windows... Pin
Michael P Butler12-Nov-05 8:57
Michael P Butler12-Nov-05 8:57 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 23:44
VampireLord12-Nov-05 23:44 
QuestionRemoving empty attributes in xmldocument Pin
kerberos_prozac12-Nov-05 7:19
kerberos_prozac12-Nov-05 7:19 
AnswerRe: Removing empty attributes in xmldocument Pin
kerberos_prozac15-Nov-05 6:21
kerberos_prozac15-Nov-05 6:21 
Questionactive form name problems.. Pin
da vinci coder12-Nov-05 6:08
da vinci coder12-Nov-05 6:08 
AnswerRe: active form name problems.. Pin
turbochimp12-Nov-05 6:41
turbochimp12-Nov-05 6:41 
GeneralRe: active form name problems.. Pin
da vinci coder12-Nov-05 6:44
da vinci coder12-Nov-05 6:44 
AnswerRe: active form name problems.. Pin
Dave Kreskowiak12-Nov-05 15:33
mveDave Kreskowiak12-Nov-05 15:33 
QuestionImap library Pin
eskan12-Nov-05 5:56
eskan12-Nov-05 5:56 
QuestionExport Crystal Report to txt file Pin
Bedevian12-Nov-05 5:43
Bedevian12-Nov-05 5:43 
Hi In VB 6 I used to export crystal report to almost any type
This sample “export report to txt file”
Dim myExportFile As String
myExportFile = App.Path + "\temp.xls"
Report.ExportOptions.DiskFileName = myExportFile
Report.ExportOptions.FormatType = crEFTText
Report.ExportOptions.DestinationType = crEDTDiskFile
Report.ExportOptions.RTFExportAllPages = True
Report.Export (False)

But in Visual Studio 2003 I can't Export to plain txt file
Check out this code,

// Set the Export type, this can be:
// PDF, Excel, Word Doc, RTF Doc,
// HTML 3.2, HTML 4.0 or CrystalReport no txt file

// The path/location where the exported file will be saved
string exportFilePath = MY_PATH+"\\RPTFOH\\Report1.DOC";

// Create an instance of the untyped report object
ReportDocument oRpt = new ReportDocument();
// Load the report from disk
oRpt.Load(@"C:\Test\RPTFOH\Report_1.rpt");

// Set the options for saving the exported file to disk
DiskFileDestinationOptions oDest = new DiskFileDestinationOptions();
oDest.DiskFileName = exportFilePath;

// Set the exporting information
ExportOptions oExport = oRpt.ExportOptions;

// Set the destination options
oExport.DestinationOptions = oDest;
// Set the location, this can be:
// DiskFile, ExchangeFolder, MicrosoftMail or NoDestination
oExport.ExportDestinationType = ExportDestinationType.DiskFile;

// Set the Export type, this can be:
// PDF, Excel, Word Doc, RTF Doc,
// HTML 3.2, HTML 4.0 or CrystalReport

oExport.ExportFormatType = ExportFormatType.WordForWindows;
// Call the Export method to export the report
oRpt.Export();

Please it's urgent,
I need to export Report to txt file.

Thanks in advance.


AnswerRe: Export Crystal Report to txt file Pin
mav.northwind12-Nov-05 6:03
mav.northwind12-Nov-05 6:03 
Questionurl problem Pin
god4k12-Nov-05 4:56
god4k12-Nov-05 4:56 
AnswerRe: url problem Pin
turbochimp12-Nov-05 6:43
turbochimp12-Nov-05 6:43 
QuestionObtaining a startup filename Pin
theladsmith12-Nov-05 4:22
theladsmith12-Nov-05 4:22 
AnswerRe: Obtaining a startup filename Pin
S. Senthil Kumar12-Nov-05 5:55
S. Senthil Kumar12-Nov-05 5:55 
GeneralRe: Obtaining a startup filename Pin
theladsmith12-Nov-05 8:25
theladsmith12-Nov-05 8:25 

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.