office 1.0 WLX

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

DaliborVesely
Junior Member
Junior Member
Posts: 6
Joined: 2004-10-13, 08:59 UTC
Contact:

office 1.0 WLX

Post by *DaliborVesely »

Hi,
I need textconv directory in program files:(
Can I use relative path for TextConv directory? For example: %commander path%\textconv\...
I use TCMD from USB removabe disk with TChere on PC without MS Office. But I have TextConv on USB removable disc.
Thanks
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

I'm afraid you can't.

Because the office plugin uses its own ini file and in that ini the text-converters are not fully addressed by their file-paths.

Example from my office.ini:

0=doc,D0CF11E0A1B11AE1,mswrd832.cnv
1=doc,D0CF11E0A1B11AE1,mswrd632.cnv
2=doc,D0CF11E0A1B11AE1,mswrd632.wpc
3=doc,D0CF11E0A1B11AE1,WRD6EX32.CNV

The plugin seems to find the converters from the registry entries and therefore expects them to be in c:\programs\common files (I think those are the correct names in english windows versions).
Grüße/Regards,
Wilhelm
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Wilhelm M.
Are you sure? I've not tried but readme says:
Convertor_file is a full path to the convertor file, or a convertor file name only. In the last case, the plugin looks for the convertor in the plugin's directory, and if not found, in the directory where MS Office has registered the convertor.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

:oops:
You are propably right, djk! I've never tried non-default paths, however.

All the same, I don't believe that the plugin recognises the %commander path% variable, because when the plugin was released (several years ago) this variable has not been introduced in TC.

But Dalibor could try relative paths.
Example: if TC is installed in x:\Totalcommander and the plugin is in x:\totalcommander\Plugins then a path like .\textconv should lead to the converters in x:\Totalcommander\textconv. Just play with different formats until it works!
Grüße/Regards,
Wilhelm
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

I have a question about this plugin for a long time.
There're 2 lines in office.ini:

8=htm,"HTML",C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv
9=html,"HTML",C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv

And surely the two cnv files are right in the place they should be. But Lister always view HTM and HTML files without this plugin.
Any idea?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Raymond
Try to change the lines into:

8=htm,,C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv
9=html,,C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv

In your (default) example of .ini file it looks for "HTML" string at the beginning of the file but for most html files it's not true. If you leave it empty it will try to open all files with extension .html and .htm.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

djk wrote:2Raymond
Try to change the lines into:

8=htm,,C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv
9=html,,C:\Program Files\Common Files\Microsoft Shared\TextConv\html32.cnv

In your (default) example of .ini file it looks for "HTML" string at the beginning of the file but for most html files it's not true. If you leave it empty it will try to open all files with extension .html and .htm.
I just tried and yes it works now, thank you.
But for some htm it works well and some not.
For example I saved this thread as HTML only .htm file. Then I can see nothing at all with Lister. It's my problem or the plugin's?
Last edited by Raymond on 2005-01-27, 14:54 UTC, edited 1 time in total.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Another idea is to examine the ListerPlugins section in the windcmd.ini. There should be a detect string like:

1=%Commander_path%\LSPlugins\office.wlx
1_detect=ext="DOC"|ext="WRI"

Add |ext = "htm" |ext="html" to the detect string.

Edit: I've not read your recent posting. So maybe the above is useless for you...

BTW: the IeView plugin seems far more convenient for viewing html files. At least if IE is installed...
Grüße/Regards,
Wilhelm
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

Wilhelm M. wrote:Another idea is to examine the ListerPlugins section in the windcmd.ini. There should be a detect string like:

1=%Commander_path%\LSPlugins\office.wlx
1_detect=ext="DOC"|ext="WRI"

Add |ext = "htm" |ext="html" to the detect string.

Edit: I've not read your recent posting. So maybe the above is useless for you...
It's the same as last post said. But thanks.
BTW: the IeView plugin seems far more convenient for viewing html files. At least if IE is installed...
I know this one, it's almost as slow as IE itself.
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

How about Webview?

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Raymond
Yes, you are right.

2Hacker
Webview seems to work correctly for those wrong (for Office.wfx) pages. At least the ones I've tried.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Strange behaviour of Office plugin

Post by *djk »

Well, I've tried to see why the plugin doesn't want to show some files. I've downloaded this forum page (as Raymond suggested) and cut most of its content. I've saved only part of the structure of this page. And what I saw was really strange.
Look at this code (and check it also if could):

Code: Select all

<html>
<head>
</head>
<body>
	
	<table>
	<tr>
		<td>
			<table>
			<tr>
				<td></td>
				<td></td>
			</tr>
			</table>
			
			<table>
			<tr>
				<td></td>
				<td>commander</td>
				<td></td>
			</tr>
			</table>
			
			<table>
			<tr>
				<td></td>
			</tr>
			</table>
			
		</td>
	</tr>
	</table>
	
</body>
</html>
It's very simple (if you know html of course :-) ).
Office plugin doesn't show anything - I don't understand why. Webview shows the word "commander" - I understand why ;-).

Now try to remove any letter from the word "commander" - Office plugin works!

To be honest it doesn't have to be the word "commander" - it can be any string - if it's longer then 8 chars office.wlx dosen't show it.

Now try something else. Move the word "commander" to any cell in the above (first) table. Office.wlx also works correctly.

Don't ask me why, but if you know it just tell me, please.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

IEView is somewhat slow, no doubt. But it shows Webpages - more or less - correctly. I've tried the Office Plugin for that purpose, but it did'nt show the html files much better than Lister itself - so I dropped it.

Also, the really thorough research (:D ) by djk shows that the office plugin is not the right tool for showing htmls.

Webview - is'nt that the plugin that uses the Mozilla Active X library? I'd like to give it a try but not if I have to install the complete Mozilla suite...

Just found a statement by the author of Webview http://www.totalcmd.net/comments.php?plugin=webview: "I make new version! Now it work on Gecko (Mozilla) engine. For work you must dounload and install Mozilla ActiveX Control (4.5 Mb)."

4.5 MB just for viewing htmls within TC? No, thank you!
Last edited by Wilhelm M. on 2005-01-28, 10:24 UTC, edited 1 time in total.
Grüße/Regards,
Wilhelm
User avatar
Stitscher
Power Member
Power Member
Posts: 1058
Joined: 2004-02-17, 12:34 UTC
Location: Hamburg, Germany

Post by *Stitscher »

TxQuickView 1.2 works perfectly with html-files.

http://www.totalcmd.net/plugring/TxQuickView.html
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Wilhelm M. wrote:Webview - is'nt that the plugin that uses the Mozilla Active X library? I'd like to give it a try but not if I have to install the complete Mozilla suite...
You don't need whole Mozilla suite, only Mozilla ActiveX Control (http://www.iol.ie/~locka/mozilla). Anyway, it's still over 4MB file.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply