Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 02 FEB 2022 09:12:17PM Don Smith wrote:

I am having problems reading a bmp record. A client has a logo that they now want to appear on their Invoices. So I loaded a bmp file into the Bmps folder and ran it in a test routine using the call x = set_printer('BMP','Bmps\BNHlogo.bmp…… That worked fine. So, I copied the logo into the Bmps folder in the client system, and copied the set_printer bit into the clients Invoice print routine. That did not work. Well - sort of. It prints the default bmp but not the logo. Can anyone suggest what I should look for to resolve the mystery. Thanks


At 02 FEB 2022 10:17PM cmeyer wrote:

Maybe you need a "." in front of Bmps\…. to .Bmps\…… to tell the system that the Bmps folder is a subfolder where OI sits.

Chris


At 03 FEB 2022 10:40PM Don Smith wrote:

I wish. It does not work nor would I expect it to be the solution. Prior to raising the issue I have tried moving the logo and calling it from a known folder - all of which work in my test system. Just not in this client's system. I should add that I have used the same logic for other clients and it works fine. Thanks Chris for taking the time to respond.


At 04 FEB 2022 12:26AM Donald Bakke wrote:

I wish. It does not work nor would I expect it to be the solution. Prior to raising the issue I have tried moving the logo and calling it from a known folder - all of which work in my test system. Just not in this client's system. I should add that I have used the same logic for other clients and it works fine. Thanks Chris for taking the time to respond.

I wonder if this is a network rights problem with this image. What happens if you try a different BMP file in that same folder, especially one that is included with OI?

Don Bakke

SRP Computer Solutions, Inc.


At 07 FEB 2022 05:44PM Don Smith wrote:

Ok - tried it with a different BMP file - same result. Makes me think the problem has something to do with the BNH account. My logic works in numerous other accounts. The BNH account is a single user so it is not exactly complex! But what am I looking for?


At 07 FEB 2022 06:49PM D Harmacek wrote:

Since you are providing a partial path I suggest you first enter the entire path to the image file.

If that doesn't work then write a tiny program doing a dir( fullpathfilename) and see what you get. Or use the RTI_OS_Directory routines.

Dave Harmacek - Harmacek Database Systems - near Boston, MA USA


At 08 FEB 2022 10:03PM Don Smith wrote:

Ok - I will try that. Thanks for the advice.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/7018da58b6917b42bd9e30b6466594fd.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1