vb.net Help

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

vb.net Help

 
0
  #1
Sep 10th, 2008
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...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: vb.net Help

 
0
  #2
Sep 10th, 2008
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.
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: vb.net Help

 
0
  #3
Sep 11th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,162
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: vb.net Help

 
0
  #4
Sep 11th, 2008
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.
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: vb.net Help

 
0
  #5
Sep 12th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: vb.net Help

 
0
  #6
Sep 12th, 2008
Hi all.
Thanks for ur response... Finally i got the solution for it....


thnks again.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC