|
I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
|
|
|
|
|
You cannot do this without third party libraries. Since your code will never know the format of every type of file, and therefore cannot understand how to print it to a PDF file itself, you have to rely on the application for every file type. This is also impossible because you cannot have the application for every file type installed nor does every application expose a COM interface for your application to use it.
You're going to have to limit your scope to a known subset of file types in order to do this to any degree of success.
|
|
|
|
|
sunithaganugu wrote: I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
So, the conversion is working, albeit on a static page? What kind of files are you going to export?
I are Troll
|
|
|
|
|
Actually my concept is E-Books.So, if i upload any type of file book it should convert to pdf and then store into database.I want to convert msword/txt/html to pdf..
|
|
|
|
|
sunithaganugu wrote: I want to convert msword/txt/html to pdf..
That's not "any file". The good news is that these formats can be exported to PDF, using a third-party library - PDF isn't supported by the native classes. I'd be using SharpPDF, but that's based on the experience of others.
I assume that you already have the code to upload a file, storing data etc.?
I are Troll
|
|
|
|
|
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"?
|
|
|
|