|
Ya,I have code for uploading files to database.I am just storing the file name not the total file to database.I am storing files in a folder on my server.Do you have any idea how to use iTextSharp library or some other third party tools?
|
|
|
|
|
sunithaganugu wrote: Do you have any idea how to use iTextSharp library or some other third party tools?
No, and that's where Google comes in. This[^] would probably be the base, I'd try to build a prototype with that code as an example.
I are Troll
|
|
|
|
|
Actually we can use google docs embedded code for doing this.Its very simple.But i want to do it in a programmatic way.
|
|
|
|
|
Yes it's possible: you have to write on your own exactly what Acrobat, PrimoPDF and others already do!
However, if really want to translate a generic file format to PDF without knowing its internal format, your only chance is to write a device driver for a virtual printer: when you print to that device, the output goes to a PDF file.
|
|
|
|
|
i was writing this for a checkbox
pizzaInfo.IsFavourite = Convert.ToBoolean(chkIsFavourite.Text);
its error not sure how to call it
String was not recognized as a valid Boolean
|
|
|
|
|
pizzaInfo.IsFavourite = chkIsFavourite.Checked;
|
|
|
|
|
pizzaInfo.IsFavourite =chkIsFavourite.Checked;
|
|
|
|
|
If we have treeview.It cansists of Driveinfo of our system.
From that files we have get the selected item to be displayed with size,name,type,version in listbox.
Rakesh Reddy B
|
|
|
|
|
|
hi !!
In xml file, there are some entities. they are shown like:
—
&softReturn;
&hTab;
&
i want to replace above entities in my html page their original form like: - for — & for & and so on.
i used code in c#.
please help me with code.
thanx
|
|
|
|
|
You can use System.Web.HttpUtility class for the same.
Find full article link below.
Full HTML Character Encoding in C#[^]
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
thanx a lot !! Sir,
your given link is very fruitful for me
|
|
|
|
|
My Pleasure.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
I have an windows application it should be active utile i logout, if i close or minimize without loging out thn the application must be active utle i logout. How can i do this... :-< For example torrent application ... if we close or minimize also something will be active.
krishna
|
|
|
|
|
I do not understand what exactly you are trying to achieve.
I think you need to minimize application, when user tried to
close the application.
If I am right then find following code useful for the same.
private bool minimize = true;
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (minimize)
{
e.Cancel = true;
this.WindowState = FormWindowState.Minimized;
}
}
And also set minimize variable true on minimize click event to track
that the application is currently minimized.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
Thanks for your reply, what i want to achieve is.....i am creating a browser which is secure browser for schools and for individual in this children cant browse unwanted sites, the concept of this browser is no one can browse unwanted sites. So the parents can login and minimize or close but it wont visible to his children so no one can open any other browsers, with out parent knowledge. I will try ur code and update u.
Thanx
krishna
|
|
|
|
|
You probably want a Windows Service.
P.S. How will you recognize a browser?
|
|
|
|
|
|
Iam recognizing the browser through process. Killing active browser process and its working fine. I need to get disappear after minimize or close the browser window ...but the state should be active till logout as i explain to u.
krishna
|
|
|
|
|
krishnavaradharajan wrote: recognizing the browser through process
Even if it's named "MyWhizBangApp"?
|
|
|
|
|
This is a lousy way to do this since any browser can be renamed to some filename and still work. How many browsers are you up against? Look at this list[^].
You don't close browser windows. The traditional way to do this is to write a proxy server. That way, you can filter out the URL's being accessed without knowing which browser the user is running.
Windows services do not care if anyone is logged in or not. They still do their job if noone is logged in.
|
|
|
|
|
I agree ur point, can u give me some idea how to use proxy server to stop other browsers.
Thanx
krishna
|
|
|
|
|
You're going to have to write a proxy server to do this, or just skip all the work and BUY one off the shelf.
You'll be writing a proxy server that listens for requests from web browsers. The proxy will then go get the web page from the requested URL. You can then examine the contents of the returned page and see if you want to return it to the web browser or not.
If you don't know what a proxy server is, how they work, what the protocols involved and how they work, you're going to find this to be impossible to write.
You should also have a good deal of experience in writing TCP/IP servers.
|
|
|
|
|
Hi,
The code wht u have given is working thanx, but the thing this now wht is happening, after i closed its minimized good till that its working thn need to get disappear and some icon identification should be appear in the bottom of the right down corner of the monitor screen....( like how we can view anti virus,audio device..etc in the right bottom of the monitor ) same like some img should appear. how can i do this....????
krishna
|
|
|
|
|