I have previously tried to use http://nicholas.piasecki.name/blog/2009/12/sending-a-bit-image-to-an-epson-tm-t88iii-receipt-printer-using-c-and-escpos/ and the attached Delphi translation to send a TBitmap directly to Epson TM T20, TM T80 and TM88 printers. Unfortunately it never worked. Recently I needed to print dynamically created QR codes using the printers so it was time to revisit this. I worked directly off the C# sources […]
Blog
- Home
- Blog
-
-
TDocVariant CRUD Operations
This is based on http://blog.synopse.info/post/2014/02/25/TDocVariant-custom-variant-type and the corresponding forum http://synopse.info/forum/viewtopic.php?id=1631 Create A TDocVariant custom variant type is declared as a Variant: var LDocVariant : Variant; The TDocVariant can be created as an object or from a JSON string. You can use the _Obj/_ObjFast, _JSON/_JSONFast and _Arr/_ArrFast methods to create the TDocVariant. LDocVariant := _ObjFast( [ ‘name’, ‘bernd’ ] […]
-
Using TDocVariant for settings
Arnaud from Synopse has just released a great new addition to the mORMot framework. TDocVariant is custom variant type which integrates effortless with JSON. One area that this can be implemented is for the settings of an application. Usually an INI file is the easiest way to implement settings for an application, especially when it is a […]
-
Running two instances of the same Delphi Service
Recently there was a need to run two instances of the same service written in Delphi on the same server. While you can manually changed the service name in the registry or via the “sc” command, the service will not start up correctly unless the service name matches the TService.Name. To get around this you can […]
-
Gnu Gettext for Delphi and Woll2Woll
We use GNU Gettext for translation in our Delphi 6 application. We also use the Woll2Woll data-aware components. In our forms we add the following to the OnCreate event: TranslateComponent( Self ); We also have set up the typical ignores but we still had a problem with the Woll2Wol TwwDBComboBox that was not being populated properly and we […]
-
TMethodList for Pre-Generics Delphi
While in the later versions of Delphi we can simply use a generic TList<TMethod> in the earlier versions of Delphi (like Delphi 6 which I am using) we need to override the base TList class to accommodate the methods and implement a TMethodList container. This method list is based on the multicast event handler outlined […]
-
Delphi Starter XE2: Installing ZEOS
Delphi Starter XE2 does not come with many options to connect to databases. You can however install the Zeos database components, so that you can connect to most common database engines. As per the ZEOS portal you should be able to connect to: ADO Mysql 4.1 to 6.0, Interbase 5 / 6 Firebird 1.0 to […]
-
Delphi Starter XE2: Installing JVCL
Because the installer for JVCL uses dcc32 , you can’t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE. The following is a brief outline of the steps to install the latest JVCL in Delphi Starter XE2:
-
Delphi Starter XE2: Installing JCL
Because the installer for JCL uses dcc32 , you can’t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE. The following is a brief outline of the steps to install the latest JCL in Delphi Starter XE2: