Results 1 to 4 of 4

Thread: Crystal Viewer Search button

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    5

    Question Crystal Viewer Search button

    I'm using a Crystal Viewer object (Crystal Reports 8.0) within a VB 6.0 application. While a report is in preview mode, I select the "Search" button to search that report for specific text. I know the text I'm searching for is in the report (on page 3) but the results indicate the text was not found. If, however, I navigate to the page that has the text I'm looking for and perform the search, the text will be found. Also, If I manually navigate through all pages, then go back to the 1st page and perform a search, the text will be found. This is not normal! I know that the "Search" button click event implicitly calls the CRViewer Object sub-routine, SearchForTextMethod(Text as String). It appears as though the search is being performed faster than the data is being download into the report! Can anyone help me????

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    I think I understand the problem and will explain it as so.

    If you use the Page N to M field, when the report if previewed it has to pregenerate every page so it can find the M page before the report is previewed.
    When you do not use the Page N to M special fields it does not have to.

    Similarly in your report when you search initially not all pages have been generated, however when you manually navigate through all the pages to the end the text is found because now all the pages have been generated.

    It would be interesting to see if putting a Page N to M special field on the report cures the problem


    Things I do when I am bored: DotNetable

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    5

    Crystal Viewer

    Thanks for your reply! (Actually, I am using the PAGE N TO M field on the report.) My problem has been resolved because our company purchased the developer's edition of Crysal Reports 10.0. This edition took care of some other problems I was having, too! My headache has ceasesd........

  4. #4
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    We have just got version 10. I haven't had a chance to look at it properly yet.

    Glad you got sorted.


    Things I do when I am bored: DotNetable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width