The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @hbeckpdx: Hi friends, I'm looking for a job somewhere working to make our world and society better. My special interests are accessibi… 50 minutes ago
    • RT @ginnymooy: Quote Kuipers: "Maak je eigen plan" Maar. De overheid heeft een grondwettelijke verplichting de volksgezondheid te bevorder… 51 minutes ago
    • RT @locuta: De doe-het-zelf maatschappij Moet je wel belasting voor betalen RT @Teletekst: "Zelf voorbereiden op coronagolf" https://t.co… 2 hours ago
    • RT @hbeckpdx: Didn't get a job I was really hoping for, so it's back to searching 😕 If you see backend positions at shops at least not mak… 3 hours ago
    • RT @barrysmit: Ik zie veel kritische reacties, maar is het echt zo gek om aan de burger te vragen om gewoon zelf een keer voor voldoende IC… 3 hours ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,726 other followers

Archive for July 24th, 2014

A few HTML to Markdown converters written in javascript, Python, Ruby, PHP and C#

Posted by jpluimers on 2014/07/24

It’s not perfect, but makes the conversion a heck of a lot easier:

to-markdown – an HTML to Markdown converter written in javascript (of which sources are on github).

[Edit 20150919: added more converters: now at least there is competition (:]

Read the rest of this entry »

Posted in Development, JavaScript/ECMAScript, MarkDown, Power User, Scripting, Software Development, Web Development | Leave a Comment »

How Can I Determine Which Version of Word is Installed on a Computer? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs

Posted by jpluimers on 2014/07/24

Late binding sometimes is your friend:

Set objWord = CreateObject("Word.Application")
Wscript.Echo "Version: " & objWord.Version
Wscript.Echo "Build: " & objWord.Build
objWord.Quit

The accompanying Delphi code:

uses
  System.Win.ComObj;

procedure TTestVersionAgnosticWordMainForm.GetWordApplicationInfoButtonClick(Sender: TObject);
var
  WordApplication: OleVariant;
  Version: OleVariant;
  Build: OleVariant;
begin
  WordApplication := CreateOleObject('Word.Application');
  try
    try
      Version := WordApplication.Version;
      Build := WordApplication.Build;
      LogMemo.Lines.Add(Version);
      LogMemo.Lines.Add(Build);
    finally
      WordApplication.Quit;
    end;
  finally
    WordApplication := Unassigned; // release it
  end;
end;

–jeroen

via: How Can I Determine Which Version of Word is Installed on a Computer? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs.

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Scripting, Software Development, VBScript | 10 Comments »

 
%d bloggers like this: