Export To Excel when groupheader is involved

aliennavaliennav Member Posts: 449
Hi All
I am converting a report to excel.
Everything is running fine except when it comes to groupheader, in excel, it is printing 2 times.
What mght be the proble??

Comments

  • SaalekSaalek Member Posts: 181
    Hi

    Do you conditioned your code ???
    currreport.showoutput(currreport.totalscausedby=fieldno(-- the field--));
    If currreport.showoutput then
      begin
         -- code to excel -- 
      end
    

    Bye
  • aliennavaliennav Member Posts: 449
    Yes I have done that.
  • aliennavaliennav Member Posts: 449
    aliennav wrote:
    Yes I have done that.
    still gettin the same prob.
  • ufukufuk Member Posts: 514
    Put a variable like i in this section and check how many times it's displayed. If it is same with excel then check if group structure is true. (Lastfieldno, totalscausedby etc.)
    Ufuk Asci
    Pargesoft
  • aliennavaliennav Member Posts: 449
    ufuk wrote:
    Put a variable like i in this section and check how many times it's displayed. If it is same with excel then check if group structure is true. (Lastfieldno, totalscausedby etc.)

    But when I run the report in NAV it is getting printed only once.
  • ufukufuk Member Posts: 514
    I am not sure of the section type but once I had this problem too and I've moved code to another section or a dataitem then problem solved.
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.