I see, I did not read your message carefully enough. So you let users edit the VFP reports, but what do you do when you have a new version of a report? I previously thought about a feature like that but could not come up with a good solution for all those scenarios.
In any case, here is the preview code, it is part of another project, so you see a lot of other PRG's in the project that you can just ignore, just look into Preview.PRG and maybe you can get some ideas from there.
(There is a missing file when you open the project, you can ignore and then remove it because it is not used.)
http://www.gammaresearch.com/christian/downloads/preview.zipGreetings!
Christian
>Hi Chris!
>
>I'd love to try your code.
>
>Nevetheless, it's not for previewing but for editing. What we do is simply:
>
>
>MODIFY REPORT (lcReportFile) WINDOW loReportWindow
>
>
>When SYSMENU is on, no problem. But when we remove the traditional menu and use a Ribbon instead, no Report menu comes up anymore.
>
>
>>>Hi all,
>>>
>>>We're implementing Command bars Ribbon in VFP's main screen. It works fine, but for reports editing (the native MODIFY REPORT command), we don't get any VFP Report menu.
>>>
>>>Has any one a trick either to recreate this special menu or its options ? sys(1500) ?
>>
>>How do you run the report? I have some code that displays a report on a separate form, and on the form are the buttons which print, zoom and navigate in the report. If this is what you are looking for, I can send you the code.
Christian Isberner
Software Consultant