Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling binary data in VFP (FedEx Ship Manager API)
Message
De
19/08/2002 23:20:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00690974
Message ID:
00691321
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform