General information
Category:
Third party products
Thanks Martin - that took care of the errors when loading the preview form. Just 2 things:
1) The report loads in preview mode, but I am still getting queried to open a report. I will be looking into this.
2) The more troublesome problem I am having is that when I press the button for Excel, the Export Options form appears, but when I select 'Generate', I am not seeing anthing created except an empty folder in my application directory. I can't trace the code in the following command, but I expect that this is where the problem lies.
loSession.TransformReport(thisform.oReport)
Thanks,
David
***********
Parameter for method LastInited() cannot be zero, only 1 - this.cntxFRX.nSheets
MartinJ
>I am trying to aset up xfrx so that I can preview documents from the application, then select the option to send to Excel, Word, etc (from the preview screen.
>
> I called the frmPreviewer class, as Martin does from the demo.scx example. as such:
>
> public loPreview
> SET CLASSLIB TO previewer
> SET CLASSLIB TO xfrxlib ADDITIVE
> loPreview = CREATEOBJECT("frmPreviewer")
> loPreview.show(0)
> loPreview.cmdopen.Click()
>
>In order to run my existing report (and not be prompted for a report to load), I then modificed the INIT to read:
>
> local loSession, lnRetval
> loSession=EVALUATE([xfrx("XFRX#INIT")])
> lnRetVal = loSession.SetParams(,,,,,,"CNT")
> loSession.setotherparams(thisform.cntXFRX)
> loSession.ProcessReport(document.filename)
> loSession.Finalize()
>
> this.cntxFRX.lastinited(0)
>
> WITH this.cntxFRX
> IF TYPE(".oTool")="O" AND NOT ISNULL(.oTool)
> .oTool.dock(0)
> ENDIF
> endwith
>
>
>This example causes several errors, as Apparently, this scenario is designed to query the user for a report to open upon loading. However, if I IGNORE enough, then it does eventually bring up a preview screen with the toolbar, but without the report. Here I need to understand how to set up this class to accept a default report.
>
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only