VBScript TO HMG
Moderator: Rathinagiri
VBScript TO HMG
Hola
Les dejo este link donde hay ejemplos de VBScript que se pueden convertir a HMG (algunos) sin mucho trabajo.
( ó utlizarlos como están)
Espero les sirva...
---------------------------------------------------------------------------------------------------------------------------
Hello
Here I leave this link where there are examples of VBScript that can be converted to HMG (some) without much work.
(Or use them as they are)
I hope you serve them ...
http://www.robvanderwoude.com/wshexamples.php
Other...
http://www.ericphelps.com/scripting/samples/
Les dejo este link donde hay ejemplos de VBScript que se pueden convertir a HMG (algunos) sin mucho trabajo.
( ó utlizarlos como están)
Espero les sirva...
---------------------------------------------------------------------------------------------------------------------------
Hello
Here I leave this link where there are examples of VBScript that can be converted to HMG (some) without much work.
(Or use them as they are)
I hope you serve them ...
http://www.robvanderwoude.com/wshexamples.php
Other...
http://www.ericphelps.com/scripting/samples/
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- serge_girard
- Posts: 3420
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
- serge_girard
- Posts: 3420
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: VBScript TO HMG
Hello,
Here is (first) VBScript to HMG. It converts DOCx to RTF and HTML.
Based upon /samples/ole/demo.prg + Source code for wsaveas.vbs
VBS to HMG is making fun (and better and nicer)
Serge
Here is (first) VBScript to HMG. It converts DOCx to RTF and HTML.
Based upon /samples/ole/demo.prg + Source code for wsaveas.vbs
VBS to HMG is making fun (and better and nicer)
Serge
- Attachments
-
- doc2rtf.rar
- (1.37 KiB) Downloaded 235 times
There's nothing you can do that can't be done...
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
VBScript TO HMG
Gracias Andrés.
Thank you Serge.
Specifcally I like to think VBScript in Harbour intead of HMG or VBScript in xBase (programming language) as supposed to be... (IMO).
Thank you Serge.
Specifcally I like to think VBScript in Harbour intead of HMG or VBScript in xBase (programming language) as supposed to be... (IMO).
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- serge_girard
- Posts: 3420
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: VBScript TO HMG
Here another one: readexcel file without excel in to TXT:
Serge
Serge
- Attachments
-
- readexcel.rar
- (2.26 KiB) Downloaded 279 times
There's nothing you can do that can't be done...
-
EduardoLuis
- Posts: 684
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: VBScript TO HMG
Hi Serge:
Wow, your investigation is excellent.-
First attemp with doc2rtf successfull.-
Thanks for share and iluminate us.-
With regards.
Eduardo
Wow, your investigation is excellent.-
First attemp with doc2rtf successfull.-
Thanks for share and iluminate us.-
With regards.
Eduardo
- serge_girard
- Posts: 3420
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: VBScript TO HMG
Eduardo, you're welcome!
Now I found a problem concerning reading XLS files. Maybe someone knows a solution?
I want to retrieve all sheetnames from an Excel. Default name is 'Sheet1' but this may be changed or added. In my language default is 'Blad1'.
I use this piece of code (not working) to retrieve all names.
Anybody knows how to get the sheetnames?
Serge
Now I found a problem concerning reading XLS files. Maybe someone knows a solution?
I want to retrieve all sheetnames from an Excel. Default name is 'Sheet1' but this may be changed or added. In my language default is 'Blad1'.
I use this piece of code (not working) to retrieve all names.
Code: Select all
objRS := TOleAuto():New('ADODB.Recordset')
oRS := objRS:OpenSchema(adSchemaTables)
Do While .Not. oRS:EOF()
sSheetName := oRS:Fields("table_name"):Value()
? sSheetName
// do somethng with the sSheetName
oRS:MoveNext()
enddo
Serge
There's nothing you can do that can't be done...
Re: VBScript TO HMG
Hello Serge!
Your sample does not work on computer without excel installed...
Your sample does not work on computer without excel installed...