Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS still does not know about VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00728151
Message ID:
00728429
Views:
30
> Hi Rich,

> I sent you a private message, but when I checked my private message area, the message did not appear
> under the sent items, so hear it is agian.

> I downloaded your app the other day. I installed the mindseyereportengine class in both my class
> folder and project. I placed the following code in a print button of a form I call to print reports:
Set Delete On
Set Console Off
the_path=Sys(5)+Sys(2003)
If .Not. Empty(Thisform.the_db)
    Select (Thisform.the_db)  && select the cursor needed by the report
Endif

SET CENTURY off

nShowWindow = 2

cReportFileName = ".\reports\"+thisform.printrpt+".frx"


SET CLASSLIB TO MindsEyeReportEngine
oRPT = CREATEOBJECT('MindsEyeReportEngine')

oRPT.ReportFormPreview(cReportFileName,nShowWindow,10,50,400,500)

SET CENTURY on
Cd (the_path)

return
> When your report form appears there is nothing in the text box but a watermark. It seem like the report engine
> is trying to generate the report, because a wait window will appear indicating how long it took the engine
> to generate the report. Also, when running some reports the engine complains about missing report varaibles.
> All this lead me to believe the engine is working, but nothing but the watermark appears in the text box.
> If I click on the printer icon of your form, blank pages with the watermark are printed. Is it possible
> I need to set additional properties of the mindseyereportengine class?

Leland,

It may be the printer driver that is causing the problem. I did make code changes to account for some printer drivers that were returning a YRESOLUTION = 0 rather than 150, 300, 600, etc. So it was making all text appear at the very top of the page and not showing up. However, the first thing to check is to see if the DEMOIT() Method is working properly. It does not run a VFP Report and is only calling the built in Methods of the ActiveX Control to place objects onto the page. My VCX code calls special VFP methods to pump a VFP Report into the control. So try the the DemoIT() method bby instantiating the VCX as you did above and then do the following:
o.DemoIT()
Also, you can email me directly so I don't take this off topic or we can move it under 3rd party tools or something. I also have been very good about making sure that the path is kept where it was when the report was started when I return. I hate that in the Adobe PDF Writer engine that it moves your path for you so nicely to where you saved your PDF document. NOT!! So you won't need to save the Path.
Previous
Reply
Map
View

Click here to load this message in the networking platform