|
Try the ASP.Net forum, they should be able to help you
Kev
|
|
|
|
|
hi,
You wrote : Now I need to access the whole page contents from to.
Now you are accessing the text content. What you need to do is the individual objects which is avilable in the web form. Am i right.
if so, use this code block to access the controls.
foreach(controls ctl in Page.Controls)
{
}
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Dear,
why i cann't find the "System.Runtime.Interopservices" reference in the Add Reference list of .NET and COM? I cann't find it in my PC too.I have to use the DLLIport attribute in my c# project.What should I do?
Thanks a lot!!!
|
|
|
|
|
|
Hi!My dear,
Thank you very much!May God bless you!
momer;)
|
|
|
|
|
Hi!leppie,
How do you know this?
|
|
|
|
|
hi,
That is not at any miracle. By the help of experience or extensive reading. You will also get this after experience. Now you already came across this problem and you will help others if they have the same. am i right ?.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Take a look at the MSDN.
At bottom of the overview page for a type you find the Requirements section which specifies its namespace as well as the assembly providing the type.
www.troschuetz.de
|
|
|
|
|
hi,
I am getting Invalid File Format Exception in following snipet, please point out the mistake.
-------------------------------------
string _report = CreateReport(); // returns rich text formated report
ms = new MemoryStream(Encoding.Unicode.GetBytes(_report));
richTextBoxEx.LoadFile(ms, RichTextBoxStreamType.RichText); // Exception
-------------------------------------
regards
|
|
|
|
|
|
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
|
|
|
|
|
hi,
Use a StringReader object to save the content of a RichText.
StringReader StrReader;
string Content=RichText.Text;
StrReader = new StringReader(Content);
And then continue.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Thanks for the reply.
I am not using the contents of rich text box, i am creating the file at some other place, and using the rich text box for printing purpose only.
regards
|
|
|
|
|
got it
"System.Text.Encoding.Default" has done done the job for me...
|
|
|
|
|
hi code guys!
How can I disable script error dailog box in web Browsr control.
|
|
|
|
|
hi,
Good question. I recomand you to post this question in Asp.Net forum.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I am working on a project in which the I have to output the data in an excel file. The input is also an excel file which contains certain headings (with defined format). I need to read these headings and query the database for their values. Finally, I need to output the data in the excel file. The format of the data is also defined in the input file by setting the format of a particular cell (the cell location is known). The problem is that I need to read all the cell formats and data up to certain specific range.
Your help will be appreciated.
Thanx.
Rahim Rattani.
|
|
|
|
|
Hi all,
For the treeView Control in .Net CF, the afterCollapse event is missing. But I need to trigger some action when the user click the
minus button on the tree, what should I do ?
Thanks
Patrick
|
|
|
|
|
You could try to remember the state of the tree and compare this with thenew state after the click event. I dont know if the TreeNode in CF has the Tag property. If so you could use that one to store a bool (for collapsed). In the Click-Eventhandler you could iterate through all nodes and compare the tag with the current state.
|
|
|
|
|
Thanks
But it seems the click eventhandler doesn't work properly. I cannot
capture the click event from the treeView, what is the problem ?
Patrick
|
|
|
|
|
How I can execute bringtofront from thread?
Thank you
|
|
|
|
|
Simply call it: obj.BringToFront();
Just kiddin'
Please elaborate what the problem is
www.troschuetz.de
|
|
|
|
|
Thanks,
Ok, when I use bringtofront inside of a thread, this function (bringtofront) don't works.
How I can do this works?
Thanks
|
|
|
|
|
First I want to say, sorry for the delayed answer.
Sounds like you have to invoke the BringToFront method: obj.Invoke(new MethodInvoker(obj.BringToFront))
You should do this everytime you want to change the appearance of your GUI from a background thread because otherwise undesirable behaviour can occur e.g. the application freezes.
www.troschuetz.de
|
|
|
|
|
Thanks for you reply.
In this moment I'm going to probe your messages.
Thanks
|
|
|
|