Archiv für den Monat Februar 2016

OutputDebugString ohne Delphi ausgeben

Eine Möglichkeit der Fehlersuche oder des Loggings ist es mittels OutputDebugString Meldungen in das Delphi Ereignisprotokoll zu schreiben. Um diese Meldungen auch außerhalb von Delphi zu empfangen (z.B.: auf einem PC beim Kunden auf dem man kein Delphi installieren kann) gibt es das Tool DebugView von Mark Russinovich (Windows Sysinternals)  Weiterlesen

How to automatically apply a style to a word document

This is an „addon“ post to How to convert old word documents (.doc) into new documents (.docx) using a template. The following source code shows how to apply a style to a word document. The first procedure lists all styles within the document. The 2nd procedure set a style. Note: If you want to change the style you have to use a variable. Otherwise you will get an exception:
„Exception Class EOleException with a message “Style‘ is not a reference property‘.“
„Im Projekt WordOLEStyles.exe ist eine Exception der Klasse EOleException mit der Meldung “Style‘ ist keine Referenzeigenschaft‘ aufgetreten.“ Weiterlesen

How to convert old word documents (.doc) into new documents (.docx) using a template

The job was to convert a bunch of old word documents (.doc) into the new format .docx by using a new template file (.dotx). I have done the task by using word automation (OLE, late binding). The old files contains a header and a footer which should be replaced by the header/footer within the new template file. See the comments in the source code below. Weiterlesen

10. Delphi Meetup Dresden – Review (English)

This is a translation of the „10. Delphi Stammtisch Dresden – Review“ blog post.

Last Thursday, the 01/28/2016, was held the 10th Dresdner Delphi Meetup. The plan was one SkillSprint on FixInsight, one on Enumerators and one on Delphi MVC Framework.
Markus started with a very detailed presentation of the code analysis tool FixInsight. This „short“ SkillSprint lasted an hour. It was a very detailed and exhaustive presentation. I think that all participants have received a very good insight. Weiterlesen