Hi,
here the solution to our problem (I'm working on the same project - Saudi Arabia Visas. My Software was working with old site and now I'm updating. It's really cool.)
Here's some functions
- Import directly the picture from the scanner with the correct size.
- Import data from invitation letter (Name,Nationality, SponsorName, SponsorAddress, SponsorId etc etc) and fill the form automatically.
- Print Visa Form
- Back up in a db all the passport data, so the next visa you don't have to write again (Passport Number, expire, residence, and so on)
- It translates the invitation letter from arabic.
That's just a look, but it does a lot more. :)
But... let's come back to our problem....I've spent all night long to solve it but in the end it's done :)
I've decided to inject a function to change all the DropDownList value.
webBrowser1.Document.InvokeScript("eval", New String() {"function ImpostaDrop(Lista,Valore) { var dropDownList = $(Lista).data('tDropDownList'); dropDownList.select(Valore); }"})
And when I need to change a value here's the VB Code.
WebDocument1.Document.InvokeScript("eval", New String() {"ImpostaDrop('#VisaKind',2)"})
It works great !!! :D
I'd like to see your software running. Let's keep in touch !!
Alex from Italy