Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fixing frx2word bug in report variable initial value
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00574226
Message ID:
00585730
Views:
56
>Has anyone used the latest release of frx2word dated November 2001. When I try to run it with the following code
>
>oF2W = NEWOBJECT("frx2word", "msoexp") && Create instance of FRX2WORD
>oF2W.SaveFolder = "g:\swissglob\pods\" && directory to create .DOC in
>oF2W.html_FileName = "Wordout.htm" && name of .DOC file to create
>oF2W.ReportHome="g:\swissglob\pods" && Optional (new to 1.5)
>nSuccess = oF2W.ReportForm("podrunx") && Process MyReport.FRX to create document
>release oF2W
>
>I get PROPERTY REPORTHOME IS NOT FOUND - any ideas
John and Fabio,

I'm using Wird 97 SP2 and VFP 7.
I have found the following problems in 1.5

1. .ReportHome property is protected. It must be set to public.
2. initvars() method does not allow to use previous variable initial value
in next variable initial value expression. As I published in UT message, I
added the following lines to initvars()

...
this.vardata[m.i,8] = vartype(eval(allt(rpt.tag)))
this.vardata[m.i,9] = this.vardata[m.i,7]

***** Following two lines added here:
PRIVATE (ALLTRIM(rpt.name))
STORE eval(allt(rpt.tag)) TO (alltrim(rpt.name))

i=i+1
select rpt
endscan
...

3. Unfortunately, 1.5 introduces new errors which are not present in
previous version:

3.1. In all my reports a line

.selection.cut

in pasteresult() method produces OLE error from Word

This method or property is not available because the object is empty

3.2. All font size and font attributes are lost.

4 At least, the most serious problem which prevents using this software:

Many report texts are repeated at many times. Numbers will not fit inot
some fields.

How to fix those problems?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform