Virtual file and HTMLview?

Discuss GUI programming with the RapaGUI plugin here
Post Reply
AUserLG
Posts: 9
Joined: Mon Feb 15, 2010 12:26 am
Location: Ottendorf-Okrilla / Germany

Virtual file and HTMLview?

Post by AUserLG » Sun Sep 09, 2018 5:00 pm

Is it possible to show a virtual file with the HTMLview class?

Greetings :)

User avatar
airsoftsoftwair
Posts: 2557
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Virtual file and HTMLview?

Post by airsoftsoftwair » Mon Sep 10, 2018 10:48 pm

Sure:

Code: Select all

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

AUserLG
Posts: 9
Joined: Mon Feb 15, 2010 12:26 am
Location: Ottendorf-Okrilla / Germany

Re: Virtual file and HTMLview?

Post by AUserLG » Tue Sep 11, 2018 9:30 pm

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

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Virtual file and HTMLview?

Post by SamuraiCrow » 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.

AUserLG
Posts: 9
Joined: Mon Feb 15, 2010 12:26 am
Location: Ottendorf-Okrilla / Germany

Re: Virtual file and HTMLview?

Post by AUserLG » Tue Sep 11, 2018 11:51 pm

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. :)

User avatar
airsoftsoftwair
Posts: 2557
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Virtual file and HTMLview?

Post by airsoftsoftwair » Thu Sep 13, 2018 7:53 pm

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 :-)

Post Reply