Interact with Silverlight

Asked

Viewed 72 times

2

Good to all, I am developing a VBA system that searches documents (.pdf) on a certain site. However I came across a problem that I had never seen before, the site opens an IE tab with a Microsoft Silverlight viewer, because then I have my problem, I can’t interact with the Silverlight controls to be able to download the file. Below the page code seen by the IE Elements Inspector:

<object width="756" height"768" id="Silverlight" data="data:application/x-silverlight-2," type="application/x-silverlight-2">
  <param name="source" value="/ClientBin/VisualizadorTif.xap"></param>
  <param name="onError" value="onSilverlightError"></param>
  <param name="background" value="white"></param>
  <param name="minRuntimeVersion" value="3.0.40624.0"></param>
  <param name="autoUpgrade" value="true"></param>
  <param name="windowless" value="true"></param>
  <param name="initParams" value="TipoImagem=,IdContrato=41f37130-588b-4907-adb4-2578b0391f35,NumeroPagina=0"></param>
  <a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0">
    <img style="" alt="Get Microsoft Silverlight" src="http://go.microsoft.com/fwlink/?LinkId=108181"></img>
  </a>
</object>

Can I get an API or something to locate the fields?

  • You may have to use WITH Object, I believe you are using only the HTML Web Scrapping. Or when is a query, Document Object Model (DOM). The Silverlight has a API in Javascript also.

  • Good morning Daniel, I did a search on what you said to see if you can use in my project, but I couldn’t find anything that resembled or gave me any starting point. You’d have something I could rely on?

  • Actually now I’ve seen that the version of Silverlight you’re trying to access is the SL2, so cannot use the API in Javascript. So I did some research and for Silverlight you will have to use some other scraper or OCR.

  • you know some scraper or OCR for that purpose, I need some fields (like printing document or choosing display form of a file. pdf).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.