It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to read and display the contents of the PDF files into my RichtextBox. I am using windows application C#. Is it possible? What is the way to do it?
You can use Adobe PDF IFilter Library to convert a PDF document to text.
Also see an example on the CodeProject
iTextSharp is another alternative PDF library for .NET.
Since PDF is an binary format you'll have to use a pdf-library like pdflib in order to read pdf-files.
pdfLib
You should checkout PDFSharp library and they have preview component, where else extracting text and showing them in RichTextBox could be little bit of more work, but you can try this.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Where can I obtain C# sample code for the Open XML SDK Library?
Using Word, create two documents -- one that does not contain page numbers, and one that is exactly the same but does contain page numbers how you want to see them.
Download the Open XML SDK Productivity Tool -- http://www.microsoft.com/en-us/download/details.aspx?id=30425 . This tool can show you exactly the C# code that you need to produce any supplied Office document.
Use the Productivity Tool to open the two documents. Compare and contrast to find the solution that you need.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need help in creating a console application, where I have to get a list of items from a XML document using a server, remote and client. I have already created a XML document
XML document looks like this:
<clothing>
<pants>Jeans</pants>
<shirt>T-Shirt</shirt>
<shoes>Boots</shoes>
</clothing>
Now my question is where do I go from here? I understand the basics but don't know how to proceed with this, any help will be appreciated, thanks.
For tips on creating a console application, see How to: Create a C# Console Application. To read an XML file, look into XDocument.Load. There are samples in the XmlDocument documentation that will show you how to get individual elements and attributes from the document.
For client/server communications, it's hard to say. Probably you want something like TcpListener.
That should at least get you a starting place.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I need to make a routine in c# that takes an MS outlook email (which will have tables inside it) and extract the tables contents to a txt file or csv file.
I don't really know where to start with this.
Could any body tell me how or where to start with this?
If you already figured out how to get the HTML from the email, you can use HTML Agility Pack to parse it and extract what you need.
You can install the Pack using Nuget.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am writing a C# asp.net web application that receives CV's in various formats i.e. doc, docx, pdf, text, etc.
I was wondering if there was a simple way I could remove certain information from the document not matter what file type it is and then pass on the edited file to the end user?
The information to be removed will be held in a string
You will need to parse each file type using separate APIs.
.docx can be parsed using: http://docx.codeplex.com/
.pdf can be parsed using: http://www.pdfsharp.net/
etc.
If you use a streamreader (http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx) to read through the document, you could use the ReadToEnd function to store everything in a string, then use the function:
MyString.Replace("Something to replace", "");
to remove the matches. If the file formats cannot be read in as a string, you'll have to consider different options. However, there are likely faster solutions given the file formats, and it's likely not stored as simply.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to write a program that will take a mp3 file as a input and output will be the words that are available in that mp3 file. For example, I have a file name test.mp3, that contains some sentences (e.g. how are you? I am fine. What is your name?), now I want to parse the mp3 file so that I can get all words/sentence that are available in test.mp3 file. I prefer .NET(c#) code.
If file format is .wav, then It is okay for me.
Please help me about the issue.
-Thanks,
Arefin
Have a look at http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx . Maybe you'll find something there.