Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
Export to excel
Posted by: billy_bob
Date: July 24, 2007 10:33AM

Currently there is a context menu item which allows you to send a link to IE. In IE there is similar functionality to send to Excel. Is it possible to send a link to Excel from K-Meleon? That would be fantastic!!!

Options: ReplyQuote
Re: Export to excel
Posted by: JujuLand
Date: July 24, 2007 12:38PM

I don't really understand the reason of your question.

If the link is an xls file, with mimetypes, you can automaticly open this link types with the default program

For example, in my registry, I have found this:

.xls > content Type = application/vnd.ms-excel

You have just to add a new type (if non existant) by Edit > mimetypes > add a new type

MimeType: application/vnd.ms-excel
Description: Microsoft Office Spreadsheet
Extension: xls

choose the work to do (open with default program must be ok)
and validate.

Then when you click on an xls file link, it will open Excel.

If you want to open other links type with excel, like we do for links to opens with IE, you can create a macro file in macros folder and name it excel.kmm, and restart K-Meleon.

# -- Top of the file ------------
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Open links with Excel ----------------------------------------------------------
#
# Dependencies : Excel
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------

# In case of manual install, registry keys can't be found and menu is grayed
# To Bypass it, just fill the content of this variable the example value adapted
# to your config
# Example :
# $_Excel_Path="\"C:\\Program Files\\Microsoft Office\\Office11\excel.exe\" %1"
# You must restart K-Meleon to take the modifications
# You have a shortcuts to modify this value: CTRL+ALT+X

$_Excel_Path="";

# ---------- General -----------------------------------------------------------------------------------------------

$_Excel_CommandLine="";

# ----- PRIVATE

$_XlsApp_OpenLinkWith="S&end Link To";
$_XlsApp_OpenURLWith="S&end To";

_XlsApp_BuildMenu{
# context menus
$__needed=true;
index($macroModules,";IE;")>-1?$__needed=false:0;
index($macroModules,";Firefox;")>-1?$__needed=false:0;
index($macroModules,";Opera;")>-1?$__needed=false:0;
index($macroModules,";Seamonkey;")>-1?$__needed=false:0;
$__needed?setmenu(LinkSave,popup,$_OpeApp_OpenLinkWith):0;
$__needed?setmenu(_Go_Open,popup,$_OpeApp_OpenURLWith):0;
}

$OnInit=$OnInit."_XlsApp_BuildMenu;";

# ---------- Opera -------------------------------------------------------------------------------------------------

Excel_OpenLink{
menugrayed=($_Excel_CommandLine=="");
exec(sub("%1",$LINKURL,$_Excel_CommandLine));
}
Excel_OpenURL{
menugrayed=($_Excel_CommandLine=="");
$__data=$URLBAR; $__data==""?$__data=$URL:0;
exec(sub("%1",$__data,$_Excel_CommandLine));
}
Excel_Path{
$ext="kmm"; &getExtensionHandler; exec(sub("%1","macros\\Excel.kmm",$cmdline));
}

# ----- PRIVATE

_Excel_CommandLine{
# try to get Excel's command line from the Windows Registry
$__data1=readreg("HKCR","Excel.Sheet\\Curver");
$__data1!=""?$__data="":$__data=readreg("HKCR",$__data1\\shell\\Open\\command\\");
$__data==""?0:$__data=$__data." %1";
$_Excel_CommandLine=$__data;
$_Excel_CommandLine==""?$_Excel_CommandLine=$_Excel_Path:0;
}

$OnStartup=$OnStartup."_Excel_CommandLine;";

_Excel_BuildMenu{
setmenu($_XlsApp_OpenLinkWith,macro,"E&xcel",Excel_OpenLink);
setmenu($_XlsApp_OpenURLWith,macro,"E&xcel",Excel_OpenURL);
}
_Excel_SetAccels{
setaccel("CTRL ALT X","macros(Excel_Path)");
}
$OnInit=$OnInit."_Excel_SetAccels;_Excel_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."Excel;";

# -- End of the file ------------

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Export to excel
Posted by: guenter
Date: July 24, 2007 01:29PM

alain best also put code to wiki macro samples.

Options: ReplyQuote
Re: Export to excel
Posted by: JujuLand
Date: July 24, 2007 01:35PM

Guenter, I haven't had time to test it :-))

No more skins ???

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Export to excel
Posted by: guenter
Date: July 25, 2007 05:20AM

Yes 2. 1 skin and 1 complete theme called blau1.1 (bleu1.1 smiling smiley. With spare icons, throbbers, backs and a Console 2 button for alain smiling smiley

Options: ReplyQuote
Re: Export to excel
Posted by: JujuLand
Date: July 25, 2007 02:19PM

Nice, I really need a console2 button, because it's quicker for error searching.
:-)

I' m testing a new version of XPCOMviewer , and I have some errors, I try to fix with les or more success, but it's not here the point I want to talk about.

In fact, I have always my test help extension activated, and as you know, this was not able to open the default xhtml, and glossary, index and summary wheren't initialized. I had the suprise, after installing the new XPCOMviewer to have glossary, index and summary appearing (the one of XPCOMviewer), so I comment the line which launch the xhtml I hardcode in js, and now, the default xthml now is opened.

I'm trying now to adapt the XPCOMViewer help function to make it opens my K-Meleon help.
It doesn't work now, and I'm not sure to win against the beast, but I'm fightning :-)

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Export to excel
Posted by: guenter
Date: July 25, 2007 02:33PM

rmn mini (the other skin) gave me the idea for console button smiling smiley

XPCOM viewer had some items where it said not implemented yet - so it is probably good to look for new versions more often then I did ( if something throws error the first try to comment out - it might be FFox only and throws error for this ).

Options: ReplyQuote
[OT] skin
Posted by: rmn
Date: July 26, 2007 02:11PM

(Sorry for being offtopic.)

Quote
guenter
rmn mini (the other skin) gave me the idea for console button smiling smiley

Oh, did you update that skin? Even I don't want to use it anymore. :-)
Making it was a lot of fun, though. It was a challenge to create a usable skin in 16 colours.

Options: ReplyQuote
Re: Export to excel
Posted by: guenter
Date: July 27, 2007 11:42AM

IMHO old skins with their few but essential buttons are a good choice for some ppl.

p. s. The problem was that they had never been updated so that only ppl who still used older k-meleon versions could use them.



Edited 1 time(s). Last edit at 07/27/2007 11:46AM by guenter.

Options: ReplyQuote
Re: Export to excel
Posted by: JujuLand
Date: July 28, 2007 08:07PM

@billy_bob,

No need to make a macro to have the Export to Excel, just install IEtab extension (hoping it works for you, some guys have problems).

When you need this function, just right-click, and choose Open page with ... IEtab.
Then a right click on the page. It gives you IE menus and you have now 'Export to Microsoft Excel'.

As on my work computer , I have MS office and OpenOffice installed, I can't test if it works also with OpenOffice, I beg that if MsOffice isn't installed, we haven't this menu...

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Export to excel
Posted by: billy_bob
Date: August 06, 2007 10:55AM

Sorry, been out of office for a bit. Thanks for the help, i shall try it all.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.