Inserting htm page in HTML

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 280
Joined: Mon Jun 27, 2016 5:05 pm

Inserting htm page in HTML

Unread post by Ga Bowen » Tue Jul 27, 2021 11:04 am

My colleague has created a flow chart in Visio and exported it to htm format.

I've used H+M to create our HTML intranet.

Can I integrate his pages into the intranet? The pages have links.

Thanks

User avatar
Tim Green
Site Admin
Posts: 22361
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting htm page in HTML

Unread post by Tim Green » Tue Jul 27, 2021 12:02 pm

Hi Gareth,

If you have access to the file you can merge it into one of your own topic pages with the #MERGE command in a code object. See here for instructions (Inserting online and external HTML files with a code object):

https://helpandmanual.com/help/hm_worki ... _html.html
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.

Ga Bowen
Posts: 280
Joined: Mon Jun 27, 2016 5:05 pm

Re: Inserting htm page in HTML

Unread post by Ga Bowen » Tue Jul 27, 2021 12:54 pm

Is there a problem using HTM pages?

User avatar
Tim Green
Site Admin
Posts: 22361
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting htm page in HTML

Unread post by Tim Green » Tue Jul 27, 2021 1:37 pm

Ga Bowen wrote:
Tue Jul 27, 2021 12:54 pm
Is there a problem using HTM pages?
The function is explicitly for HTML pages. However, as explained in the documentation, it will merge in the entire page, including the <head> section with all of its references. In some cases this can cause problems, since it will be inserting one page inside another page. If that happens it is probably better just to use an Internet link to the online version of the page. Or import it at design time, using the Project > Manage Topics > File: Import File function, which you can also use for HTML files.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.

Simon_Dismore
Posts: 193
Joined: Thu Jul 13, 2017 2:57 pm

Re: Inserting htm page in HTML

Unread post by Simon_Dismore » Tue Jul 27, 2021 5:18 pm

FYI Visio can export SVG images of pages, but I'm not sure H+M can import them faithfully. It's worth a try though:
  • It's easier than MERGE.
  • You can see the image in the editor.
  • It works in all output formats.

Gerold Krommer
Posts: 86
Joined: Fri Mar 06, 2015 12:09 pm

Re: Inserting htm page in HTML

Unread post by Gerold Krommer » Tue Jul 27, 2021 8:59 pm

I was told MS Visios SVG contains MS specific extensions and I have yet to find a Visio SVG that imports correctly. Not HMs fault though..

/Gerold

Simon_Dismore
Posts: 193
Joined: Thu Jul 13, 2017 2:57 pm

Re: Inserting htm page in HTML

Unread post by Simon_Dismore » Tue Jul 27, 2021 10:09 pm

Re: "I have yet to find a Visio SVG that imports correctly. Not HMs fault though."

It might be fixable.

@Tim I've sent you an example Visio SVG that H+M doesn't import correctly.

@Gerold Krommer perhaps you could send example(s) too...

Simon

Simon_Dismore
Posts: 193
Joined: Thu Jul 13, 2017 2:57 pm

Re: Inserting htm page in HTML

Unread post by Simon_Dismore » Wed Jul 28, 2021 6:13 pm

Gerold Krommer wrote:
Tue Jul 27, 2021 8:59 pm
I was told MS Visios SVG contains MS specific extensions and I have yet to find a Visio SVG that imports correctly. Not HMs fault though..
Maybe you should send a failing file to Tim for checking. Alexander found the problem in the sample I sent him, perhaps yours is related?

User avatar
Tim Green
Site Admin
Posts: 22361
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting htm page in HTML

Unread post by Tim Green » Thu Jul 29, 2021 6:25 am

Simon_Dismore wrote:
Wed Jul 28, 2021 6:13 pm
Maybe you should send a failing file to Tim for checking. Alexander found the problem in the sample I sent him, perhaps yours is related?
That would be helpful. Visio apparently does some things that are at least not very common in SVG, and it also adds some of its own features, which are naturally problematic. In the first example we received the problem was actually not the SVG code as such, but an embedded PNG image.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.

User avatar
Alexander Halser
EC-Software Support
Posts: 4033
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Inserting htm page in HTML

Unread post by Alexander Halser » Mon Aug 02, 2021 10:01 pm

Here is H&M 8.4.0 Build 5870 (Release Candidate):

https://www.helpandmanual.com/download/ ... p-v840.exe

The changes regarding SVG images are:
  • Images from MS Visio often include embedded image data. If that image data was faulty, this triggered an internal error in the load function and the XML parser stopped parsing the SVG XML tree. This problem has been fixed and just the element containing invalid image data is void, but the rest of the SVG is parsed normally.
  • Embedded image data in SVGs produced a lot of small temporary files which were not cleaned up. This bug is fixed as well, the temp files are cleaned up when Help+Manual closes
Alexander Halser
Senior Software Architect, EC Software GmbH

Post Reply