Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frx2any
Message
 
 
To
08/11/2006 10:20:01
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01167935
Message ID:
01168050
Views:
18
>>>>yes, it should be do pdfoutput with myReport.frx
>>>>If i run this command in "Command Window" , It works great
>>>>However, When I place into the "Print button" . it can't run
>>>
>>>Did you note what I wrote about avoiding absolute paths?
>>
>>Tore,
>>
>>I think the author of Frx2Any advocated otherwise, though I'm also not familiar with the product.
>
>Regardless of the component requiring the filename, the absolute path should never be hardcoded in the app. Of course, most of the external components require one, which is the reason why we need to use fullpath() so often.
>
>My rule of thumb is that my app should be able to be installed anywhere, be able to find its files from their relative paths, and all external components (be it automation, or one of ProfileString API functions or whatever) should be supplied with full paths to any filename they require. Which is actually not hard to do at all with all the file/path functions we have.
>
>So: hardcoded paths no, relative paths inside the app yes, absolute paths derived from them yes.

Agree. Basically, we should always use relative paths and pass fullpath("Myfile.frx") to the external application or component.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform