02-16-2020 05:52 AM
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
02-17-2020 12:14 AM
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 " * : < > ? / \ |