Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 How to filter strings and send new string to Richtextbox. (PDF conversion was done)

$
0
0
Hello family, :wave::wave:

Okay, How do I filter strings.


So I have converted a PDF file into String using itextsharp and I have the text displayed into a Richtextbox1.

However there are too many irrelevant text that I don't need in the Richtextbox.

Is there a way I can display the text I want based on keywords, the entire length of the test.

Example of text that is displayed in textrichbox1 after conversation of PDF to text:

Quote:

1
2
3
3
4
4
A A
B B
SHEET 1 OF 1
774
SIZE
SCALE
24.000-47.999
12.000-23.999
CON BAG
WIRE
90in. EX
Bos00232940
Bos00320491
Das1234
Das3216

DETAILS
1 2
RAGE

That's displayed in the RichTextbox1. I want to filter the irrelevant text and only display the ones I want based on keywords.

So the keywords would be "Bos", "Das", "774". and the new text that would be displayed in the richtextbox1 is shown below, instead of the entire text above.

Quote:

Bos00232940
Bos00320491
Das1234
Das3216
774
How can I do this? Or its not possible with VB?

PS: The only reason why I have to do it this way is because I can't set an event to doubleclick on the Axacropdf1 activeX control. My goal is to print the selected name base on the name in the Pdf file. all the pdf files are located in an external drive.
So with this, I can have the name "das1234" in richtextbox, allowing me to set a doubleclick event and send the pdf to the printer for automatic printing.


Thanks,


Steve.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>