Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xfrx preview
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00880766
Message ID:
00880839
Views:
23
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
Map
View

Click here to load this message in the networking platform