Submitted by jan_rifkinson on 2010/09/10 10:36
I cannot figure out why I can't set new default font type & size in HTML pane.
I think I've done everything I was supposed to.
See attached zip w 2 png files
  1. location of newHTMLfile under Users > Jan
  2. contents of the newHTML file w suggested changes

Comments

Hi Jan,
 
Which version of IQ are you using ? Portable or installable ?
 

jan_rifkinson

2010/09/10 11:24

In reply to by Pierre_Admin

portable

Jan, you're not editing the right file. I think I told you exactly which one to edit in the past. That file you're editing probably belongs to some older installation or I don't know.
 
Info can be found there : 4. Document Pane
 
 
[quote]
Default template for HTML and MHT documents:
 
To change default font (and other format settings) in the HTML pane:
 
 
1- close IQ
 
 
2- Find the NewHTML.htm and NewMHT.MHT files in :
  • Portable version: YourIQFolderWhereYourProgramResides\Users\YourName folder in the installation folder.
  • Installable version: Documents and settings\YourName\Application Data\InfoQube
These files serve as a templates for all new content. Open in a text editor (Notepad etc. - Right-Click>Open With> ).
e.g. to change the font, change the two instances of "MS Sans Serif" to the font name of your choice.
 

3- Modify the NewHTML.htm and/or NewMHT.MHT files (open them in notepad or your favorite text editor).

 
e.g. (in red is what needs to be modified) :
 
<HTML><HEAD>
<META content="Microsoft FrontPage 6.0" name=GENERATOR>
<STYLE> body {font-family:Times New Roman; font-size:11;}table {font-family:Times New Roman; font-size:11;}
P {margin: 0px, 0px, 0px, 0px}</STYLE>
</HEAD>
<BODY style="MARGIN: 2px" bottomMargin=0 bgColor=#ffffff leftMargin=2
topMargin=2 rightMargin=2>
<DIV>&nbsp;</DIV></BODY></HTML>
 
 
4- re-start IQ
 
 
 
Note :
 
The default files (i.e. system provided ones) used for new users is located in:
  • App folder\AppFiles
Note that these default files are overwritten on program installation.
[/quote]

jan_rifkinson

2010/09/10 13:46

In reply to by Armando

see attached
I forgot to include these files
 
IMO I think IQ (or something) is causing a re-write of the newHTML file every time IQ starts up.
I've changed the RIGHT file in the RIGHT location.
When I come back to look at it, it is back to where it was
 

Pierre_Admin

2010/09/10 14:17

In reply to by jan_rifkinson

Where is IQ installed ? If it is in one of Windows protected folders (i.e. Program files), it can do thing to you. Try putting the portable package under mydocuments to see if it help.
 

I've added a menu to set the current document as default:
 
Menu >> File >> Save as default. A dialog proposes 2 choices:
 
 

Armando

2010/09/10 15:15

In reply to by Pierre_Admin

Cool.
 
So I guess the steps would be :
 
1- open the HTML pane
2- create template :  (select all  and ) change fonts etc. as needed.
3- save as default
 
?

Pierre_Admin

2010/09/10 15:56

In reply to by Armando

To a certain extent yes, but as HTML is very styles based, editing the page code is best.
 

Armando

2010/09/10 17:35

In reply to by Pierre_Admin

[quote=Pierre_Admin]
To a certain extent yes, but as HTML is very styles based, editing the page code is best.
 
[/quote]
 
So why not a simple dialog to set fonts, size and margins ? Either in IQ's options or somewhere in one of the HTML pane's menu ?

As it turns out, this was because the portable version was installed in a Windows protected folder.
 
The portable version must be installed in an non protected folder. I've updated the install documentation page: InfoQube Program Install and Set-up
[quote]
Extract to any non-protected folder (local HD or portable). So do not copy IQ Portable to the Program Files folder !!! (e.g. Use c:\SomeFolder, MyDocuments\SomeFolder, etc)
[/quote]