Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling binary data in VFP (FedEx Ship Manager API)
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Handling binary data in VFP (FedEx Ship Manager API)
Divers
Thread ID:
00690974
Message ID:
00690974
Vues:
72
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform