Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: prasanna kunder
  Where is prasanna kunder?
 mumbai
 India
 prasanna kunder
 Tags
Subject: RE: Ole Error
Thread ID: 311229 Message ID: 311241 # Views: 38 # Ratings: 2
Version: Visual FoxPro 7 Category: Classes and Objects
Date: Wednesday, June 29, 2011 9:53:03 PM         
   


> Hello Experts
>
> This is my commands
>
> thisform.container1.olertf1.saveFile("One.Rtf")
> APPEND GENERAL Con1
> APPEND GENERAL Con1 FROM "One.Rtf" CLASS "RICHTEXT.RICHTEXTCTRL.1"
>
> when i run this command , error show on
> APPEND GENERAL Con1 FROM "One.Rtf" CLASS "RICHTEXT.RICHTEXTCTRL.1"
>
> that is
>
>
>
> how resole this on
> pl.help me
> prasanna

the method savefile of rtf takes a flag 0 for rtf et 1 for txt file
thisform.container1.olertf1.saveFile("One.Rtf",0)   &&can works without 0


you have issued a line
APPEND GENERAL Con1

this return error because you dont specify the source and the class.
i suppose you want to add a blank record,(mandatory before populating the G field) then use
appe blank

the line
APPEND GENERAL Con1 FROM "One.Rtf" CLASS "RICHTEXT.RICHTEXTCTRL.1"

is correct if the Con1 is your general field.



Regards
Yousfi Benameur

ENTIRE THREAD

Ole Error Posted by prasanna kunder @ 6/29/2011 8:56:45 PM
RE: Ole Error Posted by Yousfi Benameur @ 6/29/2011 9:53:03 PM
RE: Ole Error Posted by prasanna kunder @ 6/30/2011 7:14:30 AM
RE: Ole Error Posted by Yuri Rubinov @ 6/30/2011 2:41:34 AM