Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi Sergey!
I moved the query into the FRX and now it works! Thanks for your help!
Tim
>Tim,
>
>VFP out-of-process server runs in it's own memory space so it cannot see your application's variables, cursors or tables. You can generate a temporary table for you report and pass it's name as a parameter so COM object could open it right before printing a report.
>
>>I create an SQL cursor in the PRG. I select the cursor before I do the REPORT command. I do not open any tables in the FRX.
>>
>>I tried an experiment. I created a FRX with some text in the page header and nothing else. When I try to preview the report, VFP asks for a table. Is there a way to tell VFP not open a table in the report? If I go to the data environment and add any table, the preview works. BTW, I am using VFP 8.0.
>>
>>I also was able to create the PDF with the test report. So, I guess it is problem with finding the data for the report. Maybe I should move the PRG code to generate the cursor into the FRX. Is that the best way?
>>
>>Thanks for your help!
>>Tim
>>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement