Subject Re: REPORT PREVIEW FORM
From Mervyn Bick <invalid@invalid.invalid>
Date Wed, 14 Mar 2018 07:34:20 +0200
Newsgroups dbase.getting-started

On 2018-03-12 9:26 AM, Mustansir Ghor wrote:
> Dear All
>
> I am using below code to generate report. Report is fine but its duplicate image is seen in the navigator tab behind (attached image). How to avoid the duplicate.
>
> Pls can anybody help me on this.
>
> Best Regards
> Mustansir
>
>         set procedure to cashcol.rep
>         oRep = new cashcolReport()
>         oRep.pagetemplate1.report_title.text=form.lbrepname.text+' as on '+form.rpdate.DATEEF.value
>        set procedure to :duflp:preview.wfm additive
>        fPreview = new PreviewForm()
>        fPreview.bModal = true
>         fPreview.bClose = false
>        fPreview.bShowHTML = false // default
>        fPreview.viewer.ref := oRep // <-- new
>        fPreview.open()
>

I've never seen this problem before.  Dose it happen every time you run
the report?

What happens if you create a separate form with just the code above in
the onClick event handler of a pushbutton?

Mervyn.