Click here to Skip to main content
15,909,651 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello ,
i have created a winform which consist's of a textbox and a button .On button click the data in the textbox must be shown in pdf(ie pdf must open which must contain the data entered in the tetxbox)..
just need some idea so that i can proceed

thank you
Posted
Comments
Sinisa Hajnal 13-Oct-14 5:03am    
Google it?

You probably need a library for that. Have a look, for instance, at PDFsharp[^].
 
Share this answer
 
Comments
Member 11148509 13-Oct-14 5:27am    
Is there any other way for doing this????
Thanks7872 13-Oct-14 5:34am    
What are the problems you have using this library?
Member 11148509 13-Oct-14 5:50am    
coding part is very complicated ... need a simple code since i'm already doing a project which is already having more complicated codes in that ...only the textbox content is to be displayed in the pdf on button click.....
CodeProject is your friend: [^].

And, the best way you can enjoy that friendship is to search the site before you ask a question.

Please come back with specific questions and selected code examples that illustrate what you need help with, or where you are stuck.
 
Share this answer
 
Comments
Member 11148509 13-Oct-14 6:55am    
Ok


private void radbtn_pdf_Click(object sender, EventArgs e)
{
OpenFileDialog dlg = new OpenFileDialog();
string Filepath;
dlg.Filter="PDF FILES(*.PDF)|*.PDF|ALL FILES(*.*)|*.*";
if(dlg.ShowDialog()==DialogResult.OK)
{
Filepath = dlg.FileName.ToString();
}

}


this is the code im trying for ..in this code when i click on button its openning dialogbox and asking to open pdf so that data can be seen in winform pdf....but i want to open pdf file on buttonclick and should be able to display data in pdf which is available in winform..
hope u got me

thank you
You can user itextsharp
or pdfsharp library .
 
Share this answer
 
Comments
Member 11148509 13-Oct-14 9:43am    
ya i have used itextsharp in the above program.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900