# Problem with htmlviewer on desk application

**URL:** <https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307>\
**Category:** General\
**Created:** [April 24, 2017, 4:04pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307 "2017-04-24T16:04:19Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2017, 4:23pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/21 "2017-04-26T16:23:49Z")

</div>

I am glad to see Antonio applied exactly the same technique I was desperately trying to describe. Apparently, he was kind enough to write the code for you.

[code]Function CancelLoad(URL as String) Handles CancelLoad as Boolean  
//Divido l’URL per ottenere il nome del file  
Dim URLParts() As String=URL.Split("/")  
Dim fName As String=URLParts(URLParts.Ubound)

//Divido il nome per ottenere l’estensione  
URLParts=fName.Split(".")

//Se non ha estensione allora non un file da scaricare (non lo posso riconoscere)  
if URLParts.Ubound\>0 then  
Dim estensione As String=URLParts(URLParts.Ubound)

```
If accept.IndexOf(estensione)>-1 Then
  Dim f As FolderItem
  //Chiedo dove salvare il file, se il salvataggio in posizione fissa allora posso assegnare direttamente il valore a f
  Dim w As New SaveAsDialog
  w.Title="Salva l'allegato come"
  w.PromptText="Salva come"
  w.Filter="."+estensione
  w.InitialDirectory=SpecialFolder.Desktop
  w.SuggestedFileName=fName
  f=w.ShowModalWithin(Me.TrueWindow)
  
  If f<>Nil Then
    Dim wd As New wDownLoadProgress("Scarico "+fName+"", URL, f)
    wd.ShowModalWithin(Me.TrueWindow)
    Return False
  Else
    Return True
  End If
End If

```

End If

//Non ho fatto nulla chiamo l’evento standard  
Return CancelLoad(URL)

End Function  
[/code]

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 4:25pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/22 "2017-04-26T16:25:51Z")

</div>

3 things happens with Antonio kindness :

1. Get problem solved
2. I can learn different ways to make pizza, from a very good pizza maker
3. You figure out what can be the third…

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [April 26, 2017, 4:31pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/23 "2017-04-26T16:31:33Z")

</div>

> [@327866:@Michel Bujardet](#):
>
> I am glad to see Antonio applied exactly the same technique I was desperately trying to describe. Apparently, he was kind enough to write the code for you.

FWIW the reason I never\* give out code is because it doesn’t help teach anything, it’s just the answer. I don’t want to become people’s personal coder (unless they’re going to pay me for it).

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2017, 4:35pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/24 "2017-04-26T16:35:13Z")

</div>

That was part of the issue. I could have written an entire book about what should be done, that was not enough apparently.

[https://en.wiktionary.org/wiki/give\_a\_man\_a\_fish\_and\_you\_feed\_him\_for\_a\_day;\_teach\_a\_man\_to\_fish\_and\_you\_feed\_him\_for\_a\_lifetime](https://en.wiktionary.org/wiki/give_a_man_a_fish_and_you_feed_him_for_a_day;_teach_a_man_to_fish_and_you_feed_him_for_a_lifetime)

There are programmers that create code. There are others that simply copy and paste snippets.

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 4:38pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/25 "2017-04-26T16:38:10Z")

</div>

Tim i respect your point of view, but i do not want to start a topic for this.

Everybody can choose the way, that think is better to teach or learn.

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 4:44pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/26 "2017-04-26T16:44:22Z")

</div>

[quote=327873:@Michel Bujardet]That was part of the issue. I could have written an entire book about what should be done, that was not enough apparently.

[https://en.wiktionary.org/wiki/give\_a\_man\_a\_fish\_and\_you\_feed\_him\_for\_a\_day;\_teach\_a\_man\_to\_fish\_and\_you\_feed\_him\_for\_a\_lifetime](https://en.wiktionary.org/wiki/give_a_man_a_fish_and_you_feed_him_for_a_day;_teach_a_man_to_fish_and_you_feed_him_for_a_lifetime)

There are programmers that create code. There are others that simply copy and paste snippets.[/quote]

There are teachers that thinks that can be teach…so we can go over and over and over.

Please stop it is not necessary. If i touched your ego , so sorry for that.

Ad finally just to recall your request:

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 4:48pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/27 "2017-04-26T16:48:18Z")

</div>

[quote=327861:@Michel Bujardet]It is customary in this forum to post the final solution to a question.

Please, enlighten us, and post the code that you got from the good teachings of Antonio, so we all learn.[/quote]

There are programmers that create code. There are others that simply copy and paste snippets.[/quote]

so what you need for the Antonio code?

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2017, 5:06pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/28 "2017-04-26T17:06:47Z")

</div>

> [@327880:@Alan Castellana](#):
>
> There are programmers that create code. There are others that simply copy and paste snippets.

so what you need for the Antonio code?[/quote]

In fact, I was hurt because I tried all I could to explain to you what to do in the clearest way possible. Yet, you seemed dismayed, and even went to the Spanish channel explaining that nobody had given you any solution.

> [@327630:@Alan Castellana](#):
>
> Con el inglés me fue mal ya que no pude solucionar mi duda/problema

Muchas gracias por este reconocimiento.

Then you come back and tell :

> [@327841:@Alan Castellana](#):
>
> Antonio Rinaldi who is an Italian Xojo Evangelist and well known in this forum, got the solution that i was looking for my problem.

You had the solution all along. You simply did not want, or could not, implement it. You needed someone to write the code for you.

Antonio code is living proof that you were taking all who tried to help for a ride.

I rest my case.

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 5:40pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/29 "2017-04-26T17:40:01Z")

</div>

Im sorry but you should read better my spanish sentence and maybe Javier can help.  
What i said is that i have not solved my problem, and is different on what your are trying to pointing out.

I said “Con el ingls me fue mal ya que no pude solucionar mi duda/problema” ( i translate for you) :

“With english i did bad because i could not to solve my doubt/problem” so im talking about me . not about you or somebody in this topic. Language barrier…

If this can make your day o feel you better, i could not implement your solution because i do not see clearly at first sight , in the first instance. Not everybody are fast in learning as your are.  
And finally i want to ask you in very friendly way: Did you born a programmer? If yes good for you, im not been so lucky. If not. i believe when you decide to be one, you read and copy snippets from more experienced people as everybody did at the beginning, so please take it easy.

I have purchased all the books from Xojo library, in order to learn on my own, and there are many example on it, so standing on your point of view, those books are helpless because shows snippets or codes in order to learn and get familiar with XOJO code.

Even you are selling [quote]“The unencrypted source code version is $149.95 only, Version 1 lifetime licensing.  
Download immediately the complete source code and modify it any way you need.  
Instant download.”[/quote] so do not be ipocrite please.

You want to teach how to fish, but seems you do not how to do it…

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2017, 5:46pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/30 "2017-04-26T17:46:07Z")

</div>

Look. Civilized people say thank you to people who tried to help. You are getting way out of order now. One thing is for sure, you have a very strange way to encourage people to help. Please stop.

Now I am going to set the forum to ignore your posts. I had enough.

---

<div class="post-metadata">

**Author:** ![Sandra\_Patrica\_Alzate](https://forum.xojo.com/user_avatar/forum.xojo.com/sandra_patrica_alzate/32/25550_2.png) [@Sandra\_Patrica\_Alzate](https://forum.xojo.com/u/Sandra_Patrica_Alzate)\
**Post date:** [April 26, 2017, 5:51pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/31 "2017-04-26T17:51:05Z")

</div>

i did but you do not listen…

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [April 27, 2017, 3:43am UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/32 "2017-04-27T03:43:38Z")

</div>

This topic has run its course. Locking now.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:44pm UTC](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307/33 "2020-10-29T18:44:24Z")

</div>



[Previous page](https://forum.xojo.com/t/problem-with-htmlviewer-on-desk-application/37307.md?page=1)
