Click here to Skip to main content
15,881,559 members
Home / Discussions / C#
   

C#

 
GeneralRe: reference "System.Runtime.InteropServices" not in the Add reference list Pin
leppie23-Sep-04 20:19
leppie23-Sep-04 20:19 
GeneralRe: reference "System.Runtime.InteropServices" not in the Add reference list Pin
momer23-Sep-04 20:22
momer23-Sep-04 20:22 
GeneralRe: reference "System.Runtime.InteropServices" not in the Add reference list Pin
momer23-Sep-04 20:29
momer23-Sep-04 20:29 
GeneralRe: reference "System.Runtime.InteropServices" not in the Add reference list Pin
sreejith ss nair23-Sep-04 23:14
sreejith ss nair23-Sep-04 23:14 
GeneralRe: reference "System.Runtime.InteropServices" not in the Add reference list Pin
Stefan Troschuetz23-Sep-04 23:22
Stefan Troschuetz23-Sep-04 23:22 
GeneralInvalid File Format Exception Pin
sachinkalse23-Sep-04 19:43
sachinkalse23-Sep-04 19:43 
GeneralRe: Invalid File Format Exception Pin
leppie23-Sep-04 20:25
leppie23-Sep-04 20:25 
GeneralRe: Invalid File Format Exception Pin
sachinkalse23-Sep-04 20:37
sachinkalse23-Sep-04 20:37 
infact it is.
if i save the string using folowing
-----------------------------------
FileStream MyStream = new FileStream(saveFileDialog1.FileName, FileMode.Create);

StreamWriter MyWriter = new System.IO.StreamWriter(MyStream,System.Text.Encoding.Default);

string _report = CreateReport();

//writing the report
MyWriter.Write(_report);
-------------------------------

i get the rtf file.

i don't know whats going wrong.
what i am intending to do is, instead of saving the file on some location and then loading it in the RichTextBox, give the Stream (that is prepared from "_report" string) directly to the RixhTextBox.

please give some inputs

regards

GeneralRe: Invalid File Format Exception Pin
sreejith ss nair23-Sep-04 23:24
sreejith ss nair23-Sep-04 23:24 
GeneralRe: Invalid File Format Exception Pin
sachinkalse24-Sep-04 0:36
sachinkalse24-Sep-04 0:36 
GeneralRe: Invalid File Format Exception Pin
sachinkalse27-Sep-04 15:00
sachinkalse27-Sep-04 15:00 
Generaldisable script error in WEB Browser Control Pin
Asif Rehman23-Sep-04 19:31
Asif Rehman23-Sep-04 19:31 
GeneralRe: disable script error in WEB Browser Control Pin
sreejith ss nair23-Sep-04 23:25
sreejith ss nair23-Sep-04 23:25 
GeneralReading cell data and formats from *.xls file Pin
Rahim Rattani23-Sep-04 18:21
Rahim Rattani23-Sep-04 18:21 
GeneralTreeView Contol in .Net CF Pin
ppp00123-Sep-04 15:55
ppp00123-Sep-04 15:55 
GeneralRe: TreeView Contol in .Net CF Pin
Robert Rohde23-Sep-04 19:20
Robert Rohde23-Sep-04 19:20 
GeneralRe: TreeView Contol in .Net CF Pin
ppp00124-Sep-04 23:30
ppp00124-Sep-04 23:30 
QuestionBringtoFront from thread? Pin
rbarzallo23-Sep-04 15:50
rbarzallo23-Sep-04 15:50 
AnswerRe: BringtoFront from thread? Pin
Stefan Troschuetz23-Sep-04 21:12
Stefan Troschuetz23-Sep-04 21:12 
GeneralRe: BringtoFront from thread? Pin
rbarzallo24-Sep-04 4:28
rbarzallo24-Sep-04 4:28 
GeneralRe: BringtoFront from thread? Pin
Stefan Troschuetz25-Sep-04 22:53
Stefan Troschuetz25-Sep-04 22:53 
GeneralRe: BringtoFront from thread? Pin
Anonymous26-Sep-04 6:42
Anonymous26-Sep-04 6:42 
QuestionRemoting Errors? Pin
Haunter23-Sep-04 15:42
Haunter23-Sep-04 15:42 
GeneralQuestion about InstallShield Pin
wrykyn23-Sep-04 12:43
wrykyn23-Sep-04 12:43 
GeneralRe: Question about InstallShield Pin
Heath Stewart23-Sep-04 15:48
protectorHeath Stewart23-Sep-04 15:48 

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.