Hello Tracy,

Thanks for your idea, I tried it, but did not have any luck.

The program can not find the form in the current folder.

I have it working by making a copy of the print_preview form in the
customreports folder.

Not exactly what I wanted, but it is working.

Thanks,
Kent 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tracy Pearson
Sent: Thursday, June 14, 2012 10:21 AM
To: [email protected]
Subject: RE: Call form inside project from from ouside project

Kent Belan wrote on 2012-06-14: 
>  Hello,
>  
>  This is kind of complicated, but I am trying to build a custom report
module
>  that will allow for data entry forms and reports to be created 
> external
of
>  the project/application but still run from inside the application.
>  
>  I have this working ok, but here is my problem. I want to call a form
that
>  is inside the project, but the external form does not see the form 
> inside  the project.
>  
>  So from inside the project/application, I have a DBF that contains 
> the  external custom reports. I create a menu from this list of 
> external
reports
>  and allow the user to select a report to run.
>  
>  The code to run the external form looks something like:
>  
>  External form (oApp.DataPath + 'CustomReports\' + 
> trim(tReports.rptform))  Do form oApp.DataPath + 'CustomReports\' + 
> trim(tReports.rptform)
>  
>  This works great. The problem I am having is from inside this 
> external
form,
>  I want to call a generic print_preview form that is inside the 
> project
>  
>  So from inside the external form:
>  
>  Do form Print_Preview with 'ReportName'
>  
>  This causes an error because it can not find the form.
>  
>  Is there anyway to call a form that is inside a project/application 
> from
a
>  form that is external to the application ?
>  
>  Thanks,
>  Kent
> 

Kent,

I'm not sure if it will work from inside the EXE and carry to outside the
EXE, but you could use this to try:

SET PROCEDURE TO (_VFP.SERVERNAME) ADDITIVE

Do this once sometime early in the program before calling the external
forms. (or for testing, add it just before the call)

Tracy Pearson
PowerChurch Software


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/F2635505F1FE473CBA831E2EA756168B@LaptopW7
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to