Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in frx2word
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Error in frx2word
Miscellaneous
Thread ID:
00369373
Message ID:
00369373
Views:
62
Hi, I post this here, because I don´t know if I had to report an error when testing this class here or directly to the author, and because I have that doubt and I don´t like to mail directly to a person if he don´t knows me, so I decide to write here.
Well the error is this:

Can´t find class definition "SESSION"

Be aware of this, because is my translation of the error, I´m using a version of VFP6 in spanish, and the original is (No se puede encontrar la definicion de clase "SESSION"

The error is reported in this line of the method reportform.
F2W_oSession=newobject("Session")

The code of my example is as follows:

set defa to c:\frx2word
IF !USED("prufrx2word")
USE prufrx2word IN 0
SELECT prufrx2word
ENDIF


of2w = newobject("frx2word","msoexp")
of2w.HTML_FileName = "mi.htm"
of2w.savefolder = "c:\prufrx2word"
of2w.ReportForm("mi.frx")
RELEASE of2w


LOCAL lcBody,
IF FILE("mi.htm")
lcBody = FILETOSTR("mi.htm")
ENDIF



o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.display
oitem.recipients.add("charlie@arnet.com.ar")
oitem.subject="HTML Test"
oitem.htmlbody=lcbody
oitem.send
oitem=null
o=null

Thanks to all.

Carlos./////
Carlos Etcheverry
Monte Grande
Buenos Aires
Argentina

Es mejor un mal dia de pesca que un buen dia de trabajo!
Next
Reply
Map
View

Click here to load this message in the networking platform