Vb Data Report Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vainics
    New Member
    • Feb 2008
    • 1

    Vb Data Report Problem

    Dear Sir,

    i am in deep problme please help me out

    i have developed one program in VB using data report now my problem is some of the part of data goes to next page , i don't want , i want that i can control how many lines i want to print on one page lets say i want only 30 lines one one page if more then it then it should be transfer to next page i don't want to use Crystal report please help me out


    Thank You & Best regards,

    Mustufa
  • creative1
    Contributor
    • Sep 2007
    • 274

    #2
    I have not tried this but I am giving you a logical tip that might help you.
    When you open database connection; count total no of records store them in say COUNT.
    Then use a loop to display first 30 rows counting by row no.
    e.g.
    For i=1 to COUNT
    .......
    ........ Displaying data on report
    if (i%30)=0 then
    force page break property for report
    end if
    Next i

    I am little busy in my exams otherwise I could try it for you. Sorry, if does not help you at all.
    P.S. Experts can always frankly add their comments about my posts.
    Regards

    Comment

    • smartchap
      New Member
      • Dec 2007
      • 236

      #3
      I think you first concentrate on exams then surely prepare an example for page break and attach it as I also need it.
      Thanks.

      Comment

      Working...