So I was hoping that Fedex had an API that I could pass a tracking number to and it return a .PDF or some HTML or something that I could display to show tracking info. Below is a code snippet modified from an API call from a different company I use that returns a PDF file. I hoped I could do almost the same thing with Fedex. Has anyone done anything similar or developed a good way to get tracking information in their windows application? Their web service support team was a little bit hard to understand so they weren't much help.
Code:
Procedure OnClick
String sTracking sWebsite
Get Value of (Tracking_Form(Self)) to sTracking
Move (Trim(sTracking)) to sTracking
If (sTracking = "") Begin
Send Stop_Box "No Tracking NumberPresent." "User Error"
Procedure_Return
End
Move "https://fedex.com/ws/track/v18.pdf?uid=123456&Trck=" to sWebsite
Move (Append(sWebsite, sTracking)) to sWebsite
Send CreateComObject of (oWebBrowser(Client_Area(Main)))
Send ComNavigate of (oWebBrowser(Client_Area(Main))) sWebsite 0 0 0 0
End_Procedure
As always thanks for any input, you all always seem to have the answers.