number of copies

Hello everyone.
I have a report from which I read a dataset with a QTA field, I have to print the number of labels = QTA.
how can I do ?

Comments

  • gpigpi
    edited 8:16AM
    Add DetailData band to the report. Set DetailData.RowCount = 1 (this is necessary!)
    Set DetailData.RowCount := <MasterDataDataSet."Quantity"> MasterData1OnBeforePrint event.
    Place TfrxMemoViews with MasterData.Dataset fields on the DetailData band.
    Set MasterData.Height to 0
  • edited December 2018
    gpi wrote: »
    Add DetailData band to the report. Set DetailData.RowCount = 1 (this is necessary!)
    Set DetailData.RowCount := <MasterDataDataSet."Quantity"> MasterData1OnBeforePrint event.
    Place TfrxMemoViews with MasterData.Dataset fields on the DetailData band.
    Set MasterData.Height to 0

    sorry. can you tell me the exact syntax I can not


    in my case: DetailData1.RowCount:= MasterData1.DataSet."ETIQTA"


    so it gives me error


  • edited 8:16AM
    Hello,

    it should be like DetailData1.RowCount:= <MasterData1.DataSet."ETIQTA">

    Regards.

    sorry. can you tell me the exact syntax I can not


    in my case: DetailData1.RowCount:= MasterData1.DataSet."ETIQTA"


    so it gives me error
  • edited 8:16AM

    so it gives me error:
    DetailData1.RowCount:= STrToInt(<MasterData1.Dataset."ETIQTA">);

    attached error

    boakoms wrote: »
    Hello,

    it should be like DetailData1.RowCount:= <MasterData1.DataSet."ETIQTA">

    Regards.
  • edited 8:16AM
    Hello,

    i just correct your syntax, dont know the reason why type mismatch.

    Regards.
    so it gives me error:
    DetailData1.RowCount:= STrToInt(<MasterData1.Dataset."ETIQTA">);

    attached error

Leave a Comment