Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Brandy Zdansky
  Where is Brandy Zdansky?
 Corpus Christi
 Texas - United States
 Brandy Zdansky
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: Error with FoxyPreviewer.app
Thread ID: 345473 Message ID: 345588 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Thursday, May 24, 2012 5:29:51 PM         
   


> > On my computer, I built an EXE. It works great using "DO FOXYPREVIEWER.APP".
> >
> > Since it worked as an EXE, I put the EXE on my client's server. When I tested it out, I didn't get very far, and received "Feature not available." However, when I run the program in debug mode on the server, it works. So I'm not sure where and why the error is showing up, since running the program in debug mode doesn't generate the error.
> >
> > I made sure I had foxypreviewer.app in the same folder as the EXE (it is).
> >
> > In my start up program, I'm setting up the paths and procedures, once I've got that set up, then I run the DO FOXYPREVIEWER.APP, followed by other commands that get set.
> >
> > ***SMALL SNIPPET OF CODE
> > CLEAR ALL
> >
> > public hpdir
> > hpdir = "f:\abc\fostercare"
> >
> > SET DEFAULT TO (hpdir)
> > SET PATH TO (hpdir + '\Data1;' + hpdir;
> > + '\Data9;' + hpdir + '\Forms;' + hpdir;
> > + '\Reports')
> > _SCREEN.picture = 'GRAPHICS\ABC4A_2.JPG'
> > *
> > _SCREEN.windowstate = 2
> > DO FORM About WITH 1100
> > *
> > DO FOXYPREVIEWER.APP
> > *
> > SET EXCLUSIVE OFF
> > SET REPROCESS TO AUTOMATIC
> > SET MULTILOCKS OFF
> > SET CPDIALOG OFF
> > SET STATUS BAR on
> > CLEAR GETS
> > SET REFRESH TO 0, 0
> > SET FULLPATH ON
> > SET DEVICE TO SCREEN
> > SET MOUSE ON
> > SET LOGERRORS ON
> > SET BLINK ON
> > SET TALK OFF
> > SET VIEW off
> > SET SAFETY OFF
> > SET SCOREBOARD OFF
> > SET SYSMENU OFF
> > SET DELETED ON
> > SET BELL OFF
> > SET DELIMITERS OFF
> > SET CONFIRM OFF
> > SET DELIMITERS TO '[]'
> > SET COMPATIBLE OFF
> > SET SHADOWS OFF
> > SET EXACT ON
> > SET CENTURY ON
> > SET HOURS TO 24
> > SET CLOCK STATUS
> > SET DATE TO MDY
> > SET BORDER TO DOUBLE
> > SET READBORDER ON
> > *****************************************
> >
> > I hope that's enough of the start up program. I do get the About form (the splash screen), but after it disappears is when I get the error. I had to click "Ignore" at least 10 times, before I just hit the CANCEL button to exit.
> >
> > Thank you
> > Brandy
>
>
> Hi,
>
> I am sorry, but still not clear to me.
> I understand that when you run the executable, you do get the splash screen but right after that you get the error "Feature is not available"
> In that case it sounds like you do not have FoxyPreviewer.APP in your path.
>
> Try with following set path setting:
>
>
> m.lcPath = Set('Path')
> Try
>       Cd F:\abc\fostercare
> Catch To oException
>       If oException.ErrorNo = 202
>             MESSAGEBOX( "Directory  'F:\abc\fostercare' does not exists", 0+16+0, "Title", 0 )  &&  OK = 1
>        Endif
> Finally
> Clear events
> Endtry
> m.lcPath = Fullpath(Curdir())+  [;\Data1; \Data9 ; \Forms ; \Reports ; \Graphics]
> Set Path To (m.lcPath) Additive
> _Screen.Picture = 'ABC4A_2.JPG'
> 

>
> Your FoxyPreviewer.app should be in one of the above directories
>
>
> Regards,
>
> Koen

I will definetly go and try this out. Thank you so much for your help.

I never thought to check to make sure it was in there, even though FoxyPreviewer.app is in the directory F:\abc\fostercare.

I will definetly get back to you on this.

Thanks again.

ENTIRE THREAD

Error with FoxyPreviewer.app Posted by Brandy Zdansky @ 5/23/2012 5:44:54 PM
RE: Error with FoxyPreviewer.app Posted by Koen Piller @ 5/23/2012 7:24:27 PM
RE: Error with FoxyPreviewer.app Posted by Brandy Zdansky @ 5/23/2012 7:53:20 PM
RE: Error with FoxyPreviewer.app Posted by Cesar @ 5/23/2012 11:56:50 PM
RE: Error with FoxyPreviewer.app Posted by Koen Piller @ 5/24/2012 12:02:55 AM
RE: Error with FoxyPreviewer.app Posted by Brandy Zdansky @ 5/24/2012 5:29:51 PM