Virtual file and HTMLview?

Discuss GUI programming with the RapaGUI plugin here
Post Reply
AUserLG
Posts: 16
Joined: Sun Feb 14, 2010 11:26 pm
Location: Ottendorf-Okrilla / Germany

Virtual file and HTMLview?

Post by AUserLG »

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

Greetings :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Virtual file and HTMLview?

Post by airsoftsoftwair »

Sure:

Code: Select all

moai.Set("htmlview", "contents", FileToString(virtualfile$))
AUserLG
Posts: 16
Joined: Sun Feb 14, 2010 11:26 pm
Location: Ottendorf-Okrilla / Germany

Re: Virtual file and HTMLview?

Post 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
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Virtual file and HTMLview?

Post 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.
I'm on registered MorphOS using FlowStudio.
AUserLG
Posts: 16
Joined: Sun Feb 14, 2010 11:26 pm
Location: Ottendorf-Okrilla / Germany

Re: Virtual file and HTMLview?

Post 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. :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Virtual file and HTMLview?

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