hpwImage - [PubDir]\Includes\Images PNG not loading on other then development PC - Forum

Forum Navigation
You need to log in to create posts and topics.

hpwImage - [PubDir]\Includes\Images PNG not loading on other then development PC

Hello all,

I have a very strange issue. In my application I use jpg images and png images. The name of the images is selected via an DataBase connection see below:

hpwImageLoadFromExe "P300_DrawPin_Rectangle" "[PubDir]Includes\Images\S[fame.P100_testplug.P[P300_PIN]].png" "[P300_ConfX]" "[P300_ConfY]" "1" "clWhite"

When I run the application on my Development PC everything works fine. But when I run the application on another PC the png files are not in the drawing. The database is correct opened.

Anyone who had a similar issue???

 

Best regards,

 

Eric Beerhorst

 

 

Hello,

I think for that command you use wrong Parameters. Here from demo-pub:

hpwImageLoadFromExe "RImage1" "[Embedded][TextEntry13]" "[TextEntry5]" "[TextEntry6]" "1" ""

You use a real path for the exe loader, which uses the [embedded] path.

Regards

Hans-Peter

Hello Hans-Peter,

 

Yes you are complete right!!! I used first embedded images, after this I decided to use the images from the [PubDir]Includes\Images\ folder to give the user the possibility to change the master images.

And... I did not change the command to "hpwImageLoadFromFile"
"If you walk in the forest, you don't see the trees anymore! ;-)"

By the way, this is the first time I use hpwImage and I have to say really great work!!!

Thanks a lot for your support.

Best regards,

 

Eric Beerhorst