Canvas Update data

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

  • Posted 4 August 2017, 3:00 pm EST

    <font face="Arial" size="2">Hi,  is possible to know a method for update the data on screen and Canvas
    report when reclick on print button, </font>in my application customer print different receipt, but on screen  and report are showed always same receipt (data on report not refresh),<font face="Arial" size="2"> the snippet used is the

    <div> </div>
    <div><font face="Arial" size="2">    Dim cv1 As Canvas
        Dim cv2 As Canvas 'RptRicevutaCopia2
        Dim x As
    <div><font face="Arial" size="2">    'Mostra template report e ne crea uno
        Set cv1 = RptRicevutaCopia1.Pages(0)
        Set cv2
    = RptRicevutaCopia2.Pages(0)
    </font><font face="Arial" size="2">   
        For x = 0 To RptRicevutaDoppia.Pages.Count -
            RptRicevutaDoppia.Pages(x).Overlay cv1
    RptRicevutaDoppia.Pages(x).Overlay cv2
        Next x
    <div><font face="Arial" size="2"></font> </div>
    <div><font face="Arial" size="2">   
    </font></div><font face="Arial" size="2">
    End Sub
    Any sample for show this feature?</div>
    <div> </div>
    <div>Thanks in advance


    <div> </div>
  • 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

    If I misunderstood your question, please try to rephrase

    <o:p> </o:p>

    <o:p> </o:p>

  • 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?

Need extra support?

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

Learn More

Forum Channels