LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SaveBitmapToJPEGFile Issue - Badly formed pathname

im trying to use the SaveBitmapToJPEGFile function

 

when im using a string by its stringname it gives me this error

but when im using the actual string itself it works fine..

 

for example:

this gives me an error

SaveBitmapToJPEGFile (wagepdf,tempname1, 0, 100);

while tempname1 contains "WageReport 16/02/20 13:50.jpg"

 

but this works fine

SaveBitmapToJPEGFile (wagepdf,"WageReport 16/02/20 13:50.jpg", 0, 100);

 

any idea why it doesn't work for me and how can i fix it?

thanks

0 Kudos
Message 1 of 2
(1,962 Views)

I would be surprised that in some way you can call this command without an error!

Windows does not permit you to include some special characters inside a pathname: forbidden characters are " * : < > ? / \ |



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(1,923 Views)