Results 1 to 5 of 5

Thread: Data Reports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Data Reports

    Hi to all
    I have a problem in Data report, I am using two tables in dataenviornment and linking them to show in report.
    The problem is that the report does not get refreshed for only second time, for exampe if i press the print report for the first time it shows the correct report, but after updating the record in tables and pressing print report it shows the first record or report, and after that it shows right results.

    i am using the folowing code for printing report

    DataEnvRpt.rsCommandRpt.Open
    DataEnvRpt.rsCommandRpt.Requery
    Report.Refresh
    Report.Show
    DataEnvRpt.rsCommandRpt.Close

    please reply as soon as possible

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Data Reports

    Welcome to VBF!


    Try this...
    VB Code:
    1. DataEnvRpt.rsCommandRpt.CursorLocation = adUseClient
    2. DataEnvRpt.rsCommandRpt.Open
    3. DataEnvRpt.rsCommandRpt.Requery
    4. Report.Refresh
    5. Report.Show
    6. DataEnvRpt.rsCommandRpt.Close
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Data Reports

    Thanks a lot dee-u
    thanks 4 the nice welcome n the code (it worked)
    as u know i am new to this forum culture, therefor i don't know to much of it. can u plz be me first fourm friend and help be to understand its components.
    waiting 4 +ve responce
    bye n tk care
    JatinProg
    Last edited by JatinProg; Jul 1st, 2005 at 05:19 AM.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Data Reports

    Quote Originally Posted by JatinProg
    therefor i don't know to much of it. can u plz be me first fourm friend and help be to understand its components.
    What do you mean by 'understand its components'?

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Data Reports

    I think he means the forum; to show him the ropes, tips&tricks, FAQ and all that

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