943,816 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 542
  • VB.NET RSS
Sep 10th, 2008
0

vb.net Help

Expand Post »
Hi all
im Implementing wordcount feature in my appliction it counts the numberof lines in the document,number of pages, number of charecters with space and without space,
numberof paragraphs in the document

i implemented this function it is working fine but the problem is becoz of loops and im checking each charecter, so if the document is too long say 30 or more pages my apliction get hangs.
so any bady is having the idea to implement it another way?
any advice is welcome
thnks...
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
670 posts
since Apr 2008
Sep 10th, 2008
0

Re: vb.net Help

Well what way do you have it now?

Also be sure to optimize your code as well ie use stringbuffer instead string +, you know the usuals. When you are comparing characters, you might be running into speed and performance issues when you get into the larger documents.

Post the code and lets take a look.
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Sep 11th, 2008
0

Re: vb.net Help

Thanks for ur response
i got the solution for It. but only thing is i need to count the number of paragraphs in the document. any bady knows how to count the number of paragraphs in the document?
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
670 posts
since Apr 2008
Sep 11th, 2008
0

Re: vb.net Help

Depending upon the document, you can check for paragraph separator character

0x2029

Otherwise, you might need to check for multiple carriage returns, line feeds, depending upon how your document is saved.
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Sep 12th, 2008
0

Re: vb.net Help

Ya i tried doing this the problem is,
if user enters the blank lines by pressing enter key it counts as paragraph only.
so any other solutions?
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
670 posts
since Apr 2008
Sep 12th, 2008
0

Re: vb.net Help

Hi all.
Thanks for ur response... Finally i got the solution for it....


thnks again.
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Pgmer is offline Offline
670 posts
since Apr 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC