General information
Category:
Third party products
Hi Aaron
Just a very quick thought about your problem. Is the API returning the string as a byte array? I have been wrestling with something similar with a dll form Polar software.
Cheers
Charlie
>Has anyone implemented the FedEx Ship Manager API 6.75 or higher?
>
>I'm having problems with the binary data being returned which is needed to print the shipping labels. I developed an application 3 years ago using the ShipAPI which used a GIF shipping label format but the new version of the API uses the PNG format. I can get the transaction to work in VB with the reply string that is returned from FedExAPITransaction() but I can't get it to work in VFP7. I think it has something to do with how VFP handles binary data because I can duplicate the problem in VB if I store the binary data to a textbox when it is returned and use the string contained in Textbox.Text when calling SaveLabelToFile().
>
>I'm using the COM interface of the FedEx API and I've included some examples of the function calls that I mentioned above:
> oFedExAPIClient = CREATEOBJECT("FedExAPIClient.FedExComAPI")
> cReply = oFedExAPIClient.FedExAPITransaction(cUTI, cRequest, cURL, cPort)
>
> oLabelExtensions = CREATEOBJECT("FDXLabelExtensions.LabelExtensions")
> cShippingLabelFileName = oLabelExtensions.SaveLabelToFile(cRequest, cReply, cTemplatesPath, cLabelPath)
>
>Thanks for the help.
>Aaron
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only