Thanks very much. Your help is very appreciated.
I corrected the datatype of writepic to long and I have a correct return value of 33922.
The filelength64 is still returning -1.
And My biggest problem is no picture is displayed at all in the datawindow.
The printer is an ID Card printer and the card is the size of a credit card. The picture is the size of a picture on a driver license.