Canvas Update data

Posted by: massimotessyacconciature-it on 4 August 2017, 3:00 pm EST

  • Posted 4 August 2017, 3:00 pm EST

    Hi,  is possible to know a method for update the data on screen and Canvas
    report when reclick on print button,
    in my application customer print different receipt, but on screen  and report are showed always same receipt (data on report not refresh), the snippet used is the
    follow
    :

     

        Dim cv1 As Canvas
    'RptRicevutaCopia1
        Dim cv2 As Canvas 'RptRicevutaCopia2
        Dim x As
    Long
       

        'Mostra template report e ne crea uno
    nuovo
                     
        RptRicevutaCopia1.Run
       
    RptRicevutaCopia2.Run
        Set cv1 = RptRicevutaCopia1.Pages(0)
        Set cv2
    = RptRicevutaCopia2.Pages(0)
           
       
    RptRicevutaDoppia.Run
       
       
       
        For x = 0 To RptRicevutaDoppia.Pages.Count -
    1
            RptRicevutaDoppia.Pages(x).Overlay cv1
           
    RptRicevutaDoppia.Pages(x).Overlay cv2
        Next x

     

       
    RptRicevutaDoppia.Show


    End Sub


    Any sample for show this feature?

     

    Thanks in advance

    Regards:

    Massimo

     

  • Replied 4 August 2017, 3:00 pm EST



    I honestly don’t exactly understand the feature you are
    asking about. The code snippet you posted seems to work; and I can see the
    first page from the “copia1” and “copia2” reports overlay each page of the
    third report.

    Do you mean that when the user prints from the viewer you want to
    make sure that the printed report contains the latest data even if it doesn’t
    appear in the viewer. If that’s the case, you have to run the report again
    before printing so that the viewer is refreshed and the report printed with the
    latest data. Have a look at the CustomPreview sample included with
    ActiveReports on how to modify the viewer toolbar buttons so that you achieve
    that.





    If I misunderstood your question, please try to rephrase
    it.



     



     

  • Replied 4 August 2017, 3:00 pm EST

    Hello, the problem is exactly explained in your  message, where can I write  the code for  run the report again (I presume in third report)  with latest data on viewer and if you send me the sample (or code) for achieve it with canvas object?


    Massimo
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels