Adding Include Files

crjunk

Member
This is a newbie question that I have. I'm trying to reference an include (.i) file in my CGI Wrapper, but I am receiving a " pdf_inc.i was not found. (293)" error. Can someone tell me how to reference an include file? I've placed the pdf_inc.i file in the following location on the WebSpeed sever D:\webspeed\src\web2.

This is the code that I'm trying to compile:

CASE CurrentStatus:
WHEN "Process Report " THEN DO:
{ pdf_inc.i }
END.
END CASE.

Thanks,
CR Junk
 

jongpau

Member
Hi,

There is nothing wrong with the way you try to include that file. What it looks like is that the include file you are trying to use cannot be found in your Propath. With WebSpeed this is a little less obvious and and can be a little trickier than with "normal" Progress, but it needs to be able to find any external file you reference.

So, you may have to:
- specify a folder where the pdf_inc.i file is located (e.g.: {include/pdf_inc.i});
- move the pdf_inc.i file to somewhere in the propath
- change the propath (last resort)
 

crjunk

Member
Thanks for your help! I was able to determine with the Agent Variables tool in Web Tools that my propath was set to d:\webspeed\tty. It now seems to be finding the include file whenever I compile the program.

Sincerely,
CR Junk
 
Top