Jump to content

irawan

Members
  • Content Count

    12
  • Joined

  • Last visited

Posts posted by irawan


  1. 15 hours ago, PeterBelow said:

    To be able to use a font on Windows it has to be installed (Font applet in the control panel or using the Windows font API, i. e. AddFontResourceEx).  You have to do this on your user's systems as well, so have to distribute the font with your application.

    is it possible to not install this font?
    what i mean just put this font file together with the application and then load this font when necessary.


  2. 6 hours ago, Thuddeus said:

    Anything new on this? I am having the same problem with HP and Canon wireless printers under both Delphi 11 and Delphi 6. All printing from my Delphi programs fails on these printers, whether drawing to the printer canvas or using AssignPrn and writing text to the device.

    My customers can dump to pdf and print from there, but I was hoping there was a fix, or at least a better work-around, since for some of them, switching printers is not an option.

     

    it is very funny that blaming Delphi for bugs on printer driver (usually this is the source of trouble) will solve this problem.
    the most reliable way to solve this problem is to communicate with printer driver author.
    explain your problem and send them your most simple program that show where the problem is.

    however reaching the author is not as easy at all.


  3. On 2/15/2022 at 4:59 PM, dados said:

    More on performance.

     

    I loaded a 120 Mb. 3.3million line xml file and that is just blistering. 

    Then I loaded a 10 Mb. xml file with no line brakes (single line) and it's extremely slow.

    Is this something that could be optimized? (large single line file)

     

    Compiled and tested in 32 and 64 bit debug and release.

    formatting such a huge line is huge job.


  4. 16 hours ago, taariq said:

    Thank you so much

    Playing with Firebird and Flamerobin
    How would I setup an id field that is an auto number for ID as access db

    My SQL

    create table JobCard ( id varchar(10) not null primary key,
      orderno varchar(12),
      jobname varchar(100),
      startdate varchar(24),
      completiondate varchar(24),
      amountex varchar(12),
      desc varchar (50)
      );

     

    Thank you

    for primary key DO NOT use char or varchar. better is use integer or bigint.
    if you insist to use char or varchar, all what you will get is database performance become slower and slower.
    some times depend on your application, there is a requirement that some field have to unique.
    for in this requirement, you should use unique index.

    ideally every table have its own primary key.

    do not mix business requirement and database requirement

    best regard


  5. Indy is a big big library.
    hoping that everything is works well and everything updated according to its standard also a hug job.
    it is nice if we collect every simple and working examples in one place.
    in order not got confused (there many Indy version, also many Delphi version) it is very important to write down which Indy version is used AND which Delphi version used to compile AND which OS is used.
    OS also important cause OS can doing same job differently.

    so lets start collect our simple working examples.

×