473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Document Management

Gurus please help! Using VB.net I would like to do the following:

1. Open up a doc or rtf file in my application
2. Search through the text using keywords
3. Select portions of the text by highlighting it
4. Transfer the portions of the text that I've selected into a new window
which will be a blank document
5. The new document will have a reference to the source document (document
name, line number) then the text that was selected
6. I can then open up a new document and do the same as #2,3 and 4; and the
areas that I've selected can be added to the new document in #5.
7. I will then have a number of portions of text copied and referenced from
multiple documents all arranged into one document which i can then print and
save.

Any suggestions?

Thanks.

Gull.
Gurus please help! Using VB.net I would like to do the following:

1. Open up a doc or rtf file in my application
2. Search through the text using keywords
3. Select portions of the text by highlighting it
4. Transfer the portions of the text that I've selected into a new window
which will be a blank document
5. The new document will have a reference to the source document (document
name, line number) then the text that was selected
6. I can then open up a new document and do the same as #2,3 and 4; and the
areas that I've selected can be added to the new document in #5.
7. I will then have a number of portions of text copied and referenced from
multiple documents all arranged into one document which i can then print and
save.

Any suggestions?

Thanks.

Gull.
Nov 20 '05 #1
2 3024
Hi Gulliver,

I hope you don't expect me to write the code for you ... here's where you
need to look for the information you need:
1. Open up a doc or rtf file in my application
the RichTextBox can open and save RTF-Files, have a look at the
LoadFile()/SaveFile()-methods
2. Search through the text using keywords
The Find()-method can search the Text in a RichTextBox. You can also use
Regular Expressions (look at the Regex-Class)
3. Select portions of the text by highlighting it
Properties SelectionStart and SelectionLength as well as SelectedText. Look
at the RichTextBox-Properties starting with "Selection" ...
4. Transfer the portions of the text that I've selected into a new window
which will be a blank document
Copy the SelectedText into the new Document, that should be the easiest
task. You can use SelectedRTF-Property and the AppendText()-Method or use
the Clipboard (RichzTextBox has methods for that).
5. The new document will have a reference to the source document (document
name, line number) then the text that was selected
Nope, it wont - you'll have to implement that yourself. It will only contain
the text.
6. I can then open up a new document and do the same as #2,3 and 4; and the areas that I've selected can be added to the new document in #5.
Since you can copy them from the other RichTextBoxes, that should be no
problem.
7. I will then have a number of portions of text copied and referenced from multiple documents all arranged into one document which i can then print and save.
You can Save the document using SyveFile, of course. Printing is a bit more
work, you'll need to have a look at the PrintDocument class, which is used
for printing - but that's a bit of work.

Any suggestions?


Just one more: Why don't you try to read the Online-Help - it's all in it
:-)).
Regards,

--
Frank Eller [.NET MVP]
www.frankeller.de
..NET Developers Group Munich- www.munichdot.net
Nov 20 '05 #2
Thanks Frank for you tips and ideas! Most appreaciated!

Gulliver

"Frank Eller [MVP]" <we*******@frankeller.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Gulliver,

I hope you don't expect me to write the code for you ... here's where you
need to look for the information you need:
1. Open up a doc or rtf file in my application
the RichTextBox can open and save RTF-Files, have a look at the
LoadFile()/SaveFile()-methods
2. Search through the text using keywords


The Find()-method can search the Text in a RichTextBox. You can also use
Regular Expressions (look at the Regex-Class)
3. Select portions of the text by highlighting it


Properties SelectionStart and SelectionLength as well as SelectedText.

Look at the RichTextBox-Properties starting with "Selection" ...
4. Transfer the portions of the text that I've selected into a new window which will be a blank document
Copy the SelectedText into the new Document, that should be the easiest
task. You can use SelectedRTF-Property and the AppendText()-Method or use
the Clipboard (RichzTextBox has methods for that).
5. The new document will have a reference to the source document (document name, line number) then the text that was selected


Nope, it wont - you'll have to implement that yourself. It will only

contain the text.
6. I can then open up a new document and do the same as #2,3 and 4; and the
areas that I've selected can be added to the new document in #5.


Since you can copy them from the other RichTextBoxes, that should be no
problem.
7. I will then have a number of portions of text copied and referenced

from
multiple documents all arranged into one document which i can then print

and
save.


You can Save the document using SyveFile, of course. Printing is a bit

more work, you'll need to have a look at the PrintDocument class, which is used
for printing - but that's a bit of work.

Any suggestions?


Just one more: Why don't you try to read the Online-Help - it's all in it
:-)).
Regards,

--
Frank Eller [.NET MVP]
www.frankeller.de
.NET Developers Group Munich- www.munichdot.net

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Sandy Norton | last post by:
Hi folks, I have been mulling over an idea for a very simple python-based personal document management system. The source of this possible solution is the following typical problem: I...
4
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a...
0
by: Tim Sawlor | last post by:
I am looking for an XML document management systems that might meet my requirements. The group I work for produces a great deal of reports and documents. These documents can be quite long (~300+...
0
by: Philippe Poulard | last post by:
A sane document management approach: I manage my documents with a key, composed with some fields of my XML documents. When I have to refer to documents, I use a canonical form of the key so that...
1
by: David | last post by:
My customer wants to scan their documents and organize them electronically and he has asked me to find him a viable solution. These are the criteria. - It must integrate with an existing MS SQL...
15
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange)...
7
by: RA | last post by:
Hi Is there any document management that microsoft provides? A large organization need a tool that gets information and can generate documents based on a pre defined templates. Thanks
2
by: Yoonus | last post by:
I am into a C# project which is a document management system. Work Flow: I will scan some document and the scanner needs to put the scanned file in to a folder. While putting the file in to a...
3
by: Mad Joe | last post by:
Hello! Does anybody know about a good open source form manager (document management) in PHP/MySQL? I have to build online admin pages for couple of custom form types which are currently on the...
1
KalariaNitya
by: KalariaNitya | last post by:
Hello all, do u have any idea on DMS (Document Management System). i m working on Insurance Management System for that i have to make paper less office.. can anybody tell me that from where...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.