Page 1 of 1

Virtual file and HTMLview?

Posted: Sun Sep 09, 2018 5:00 pm
by AUserLG
Is it possible to show a virtual file with the HTMLview class?

Greetings :)

Re: Virtual file and HTMLview?

Posted: Mon Sep 10, 2018 10:48 pm
by airsoftsoftwair
Sure:

Code: Select all

moai.Set("htmlview", "contents", FileToString(virtualfile$))

Re: Virtual file and HTMLview?

Posted: Tue Sep 11, 2018 9:30 pm
by AUserLG
Thx :)

Is this also possible with a virtual PDF file?
Because when trying with a virtual PDF, I get the following error message:
Attribute "321492" not recognized for this class!
The number is the file size.

Due to the possibility to print a PDF via HTMLview I would like to do that with virtual PDFs too. :D

Re: Virtual file and HTMLview?

Posted: Tue Sep 11, 2018 11:22 pm
by SamuraiCrow
HTMLview cannot view PDF files. It only views HTML files (version 4 or less on Amiga-like operating systems usually).

Polybios plugin can view PDF files though. If you need to view a PDF on a RapaGUI layout, use the Hollywood Bridge as indicated on https://hollywood-mal.com/docs/html/rap ... ridge.html and https://hollywood-mal.com/docs/html/pol ... Anims.html.

Re: Virtual file and HTMLview?

Posted: Tue Sep 11, 2018 11:51 pm
by AUserLG
SamuraiCrow wrote: Tue Sep 11, 2018 11:22 pm HTMLview cannot view PDF files. It only views HTML files (version 4 or less on Amiga-like operating systems usually).

Polybios plugin can view PDF files though. If you need to view a PDF on a RapaGUI layout, use the Hollywood Bridge as indicated on https://hollywood-mal.com/docs/html/rap ... ridge.html and https://hollywood-mal.com/docs/html/pol ... Anims.html.
Ah ok.

However, viewing PDFs via HTMLview works fine on Windows, so I was hoping that it could work with virtual PDFs as well. :D

Nevertheless, thanks for the info, I'll try that. :)

Re: Virtual file and HTMLview?

Posted: Thu Sep 13, 2018 7:53 pm
by airsoftsoftwair
AUserLG wrote: Tue Sep 11, 2018 11:51 pm However, viewing PDFs via HTMLview works fine on Windows, so I was hoping that it could work with virtual PDFs as well. :D
That's a rather optimistic assumption for a hackish 20 year old MUI class :-)