|
put this and try again
_writer.Close();
replay me if it works
|
|
|
|
|
Thanks, it works now
He who laughs last is a bit on the slow side
|
|
|
|
|
Hi,
I am trying to use a documentstream of a pdf file to show that in a webbrowser component. I am trying to use the DocumentStream property of the .NET 2.0 Webbrowser component. I have this code:
byte[] rapport = rs.GetStreamFromRender();<br />
System.IO.MemoryStream stream = new System.IO.MemoryStream();<br />
stream.Write(rapport, 0, rapport.Length);<br />
webBrowser1.DocumentStream = stream;
The stream holds the pdf file correctly but the webbrowser component never shows the page although the DocumentStream property is filled. It just shows an empty page.
Does anyone have an idea how to show the streamed page ??
|
|
|
|
|
I know it's been a while since you posted this, but I'm having the same issue and wanted to know if you were able to find a solution?
thanks,
Will
|
|
|
|
|
Hi all,
I looked around at different ways to connect to databases. Then I saw that some people have the loads and other commands as stored procedures in the database, is it better to do it like that or is it better to have the loads and those commands in the application itself?
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
Hi Friend'z
I have MDI application which contains multiple forms, From Main page's main menu i have opened login form. after entering login details, i have to go to main page. i'm going to another page but login page wil not b closing. the Login form should be closed after main page is opened.
How can i do it?
pl help me friends... thanks in advance!
ITS VERY URGENT FRIEND'Z
|
|
|
|
|
you can hide first the login form before you open the main form. Simply by doing this.
[LoginFormName].Hide()
[MainFormName].Show()
Normally, you would want to hide the login form so that the application will not quit. But if the login form is not your startup form you can close the close the login form.
[MainFormName].Show()
[LoginFormName].Close()
Notice that the main from will show first then the login form will close. If you do it the other way, the login form will not be able to call the method '[MainFormName].Show()'
|
|
|
|
|
hi all,
i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear,
how to do this,
do we have any provision to communicate between two forms,--like of Session
of webpages,
please help me
thnx in advance,
prashanth,
|
|
|
|
|
pashitech wrote: the first form should disappear
Call the Hide method of the form.
pashitech wrote: do we have any provision to communicate between two forms
Take a look at this CP article: Passing Values between Forms in .NET 1.x with C# and VB.NET examples[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
If Form1 is your main form and Form2 is your subform, on the button click event write
Form2 f = new Form2();<br />
f.Show();<br />
this.Hide();
Although we should remove memory use for Form1 but I dont know how too
|
|
|
|
|
I have developed some no. of screens in windows application using vc#. I want to make other form ( that may be 3rd, 4th but not first) as starting page. How can i make it? please help me!
Raheem MA
Tr. Systems Engineer
|
|
|
|
|
Look for the static Main method of your application. If you created your project with VS2005 its in a separate class called Program otherwise it's in the first form created. There you find the following line of code (the name of the form class may be another):
Application.Run(new Form1()); If you want another starting form simply change the type of the instance that gets created and then passed to Application.Run .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
You can find the following code in the main.
Application.Run(new Form1());
If you want to run the form2 then simply change this to
Application.Run(new Form2());
My small attempt...
|
|
|
|
|
If you want to help the original poster, you should post a reply to his posting and not to mine.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
I am working with C# and Crystal reports 10 and C# 1.1 VS 2003. When I run my project i get following error:
"A Crystal Reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store."
Also I have another project which is working fine with the same things, so I think license for Crystal reports exists, and this is some thing else.
Also sorry if this is not the right place to post this question.
|
|
|
|
|
I am having same problem ... I am using Crystal Report 10 with VS2003. Surprisingly, report shows on Release Mode but not in Debug Mode
Does any one know solution of this problem????
MQPASTA
Remember: You can't see every one but every one can
|
|
|
|
|
Hi everyone,
Would like to get help on client access thru server side scripting.
Problem:
I want to access drive information of client machine thru a server side script. But it displays my server drives not client machines.
am using "Directory.GetLogicalDrives()" function.
Help required..
Regards,
Niladri Dasmahapatra
Developer .Net
Delhi, India
|
|
|
|
|
I want to write code of click event of axShockwaveFlash.when i click on axShockwaveFlash object then open a another form.but there are no events of axShockwaveFlash object.so how i do that?
pls help me.
thanks.
|
|
|
|
|
|
i have a window service and window application two different projects.
i am hendling a window service through window application for start, stop, Restarting the service. i am checking service using Timer in window Application for every 500 interval. but i want it without using Timer it should check the service status, if i stop service(in services) then it automatically show Stop in Window Application.
Thanks
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
There are several ways to do this.
One easy way is to write it to windows log entry using the EventLog class. In the service you'll create a source with your service's name, and in the Stop() method of the service, you write an entry to the Log. In the applications use the same class to monitor that log. When an entry is written an event called EntryWritten will be raised.
PS.
This may not work when you service has been forcibly ended using the task manager.
Regards
|
|
|
|
|
Hi,
How can i passed values from one form to another form without using help of constructor.
suppose FormA has a variable i=4 that values i want to send to FormB.
it can passed by constructor. like FormB oFormB=new FormB(i).
But i want to know that is there any other way to passing value.
Pls help me if possible give a example with code.
thanks.
|
|
|
|
|
|
yes, u can create a static class and set the property from one class and then access it from another class...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
FormA
{
public static string GlobalVar;
}
FormB
{
FormA.GlobalVar = "parameter to be passed";
}
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|