Recent

Author Topic: Lazarus, report and CGI  (Read 47714 times)

Groffy

  • Full Member
  • ***
  • Posts: 205
Re: Lazarus, report and CGI
« Reply #45 on: August 22, 2017, 10:35:19 am »
I don't think so as output is graphical and not ASCII.

Thank you, thats exactly the information I was asking for


Linux Mint / Windows 10 / Lazarus 3.6.0 / trunk

J-G

  • Hero Member
  • *****
  • Posts: 992
Re: Lazarus, report and CGI
« Reply #46 on: August 22, 2017, 02:16:29 pm »
Hello,
is FPReport supporting DMP printers in any way?
You could always print to a PDF from the report and then print the PDF to your Dot Matrix Unit.
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

talorigomat

  • Jr. Member
  • **
  • Posts: 96
Re: Lazarus, report and CGI
« Reply #47 on: August 24, 2017, 03:39:56 am »
I have downloaded the trunk version of lazarus and fpc.  I've compiled the various lpk's and installed lazidefpreport.  Lazarus then fails to restarts and gives the following system Error:
"The code execution cannot proceed because freetype-6.dll was not found.  Reinstalling the program may fix this problem."

Where can I find a copy of this dll?
Lazarus 1.8.0Rc4, Windows 10

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Lazarus, report and CGI
« Reply #48 on: August 24, 2017, 03:44:10 am »
freetype (for windows) is part of gnuwin.

talorigomat

  • Jr. Member
  • **
  • Posts: 96
Re: Lazarus, report and CGI
« Reply #49 on: August 24, 2017, 11:32:34 pm »
Thanks Molly.  I downloaded and installed gnuwin and installed Gnuwin.  I've tried moving the freetype-6.dll to various directories in the Lazarus directory but still get the same error.  Where should I put the file.
Lazarus 1.8.0Rc4, Windows 10

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #50 on: August 25, 2017, 12:44:27 am »
Will the print previewer dialog window of fpReport have a way of translating its messages?
That's up to the toolkit the "print preview" dialog is implemented in. The fpGUI print preview dialog for use with fpReport is 100% localised for all the languages that fpGUI supports.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #51 on: August 25, 2017, 12:48:48 am »
Good suggestion Thaddy, indeed I run Lazarus trunk but not FPC trunk.
I'll hunt down FPC trunk and get that installed as well.
Just to be clear, yes fpReport was released into FPC Trunk first - as per FPC development rules. I can also add that fpReport, fpPDF and fpTTF packages can simply be copied from FPC Trunk and used as-is with FPC 2.6.4 and later too. So you are not forced to use FPC Trunk just to use fpReport. I'm pretty sure fpReport (like was done with fpPDF and fpTTF) will be back-ported to 3.0.4 (or whatever stable release comes after that).
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #52 on: August 25, 2017, 12:52:23 am »
I don't think so as output is graphical and not ASCII.
Correct, but it is super simple to create new fpReport exporters. A new ASCII exporter should be a breeze, and you can even take a look at the HTML exporter if you want ideas for text output.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #53 on: August 25, 2017, 12:55:39 am »
I've tried moving the freetype-6.dll to various directories in the Lazarus directory but still get the same error.  Where should I put the file.
I would imagine in the <windows>\system32\ directory, or whatever is the equivalent in 64-bit Windows platforms.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Lazarus, report and CGI
« Reply #54 on: August 25, 2017, 08:04:44 am »
I downloaded and installed gnuwin and installed Gnuwin.  I've tried moving the freetype-6.dll to various directories in the Lazarus directory but still get the same error.  Where should I put the file.
Just for the record: there is no need to install all of gnuwin32. You could do with the bin archive (*) on the page i linked to _plus_ the dependencies (that are also listed separately).

(*) and even then strictly speaking, fpReport would only require the dll. The rest of the tools inside the archive are freetype related.

As already stated by Graeme, usually a directory in your path should be enough. (but tbh i did not checked fpreport yet).

ps: are you sure about the dash as i did not see a library with that name inside the freetype bin archive. In case it really want that then try rename the library.

pps: note that gnuwin32 has some other dependences (usually listed at the bottom of gnuwin individual tool pages) that are common for 32bit systems but perhaps not so for 64bit systems.
« Last Edit: August 25, 2017, 08:32:08 am by molly »

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Lazarus, report and CGI
« Reply #55 on: August 25, 2017, 08:11:33 am »
I've tried moving the freetype-6.dll to various directories in the Lazarus directory but still get the same error.  Where should I put the file.
I would imagine in the <windows>\system32\ directory, or whatever is the equivalent in 64-bit Windows platforms.
Or put it in the directory where the executable is.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #56 on: August 25, 2017, 10:39:02 am »
Just for the record: there is no need to install all of gnuwin32.
Correct, the FPImage exporter (for text output) only requires the freetype DLL, no other tools or libraries from the gnuwin32 project.
 You could do with the bin archive (*) on the page i linked to _plus_ the dependencies (that are also listed separately).

Quote
ps: are you sure about the dash as i did not see a library with that name inside the freetype bin archive.
That seems to be a bit of a mess. I have 3 copies of the FreeType DLL on my system - downloaded from various locations on the Internet.
  • freetype6.dll
  • freetype-6.dll
  • freetype.dll

On my system they are all FreeType v6.  %)

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1518
    • Graeme on the web
Re: Lazarus, report and CGI
« Reply #57 on: August 25, 2017, 10:40:20 am »
Or put it in the directory where the executable is.
Correct, that normally works too, but then you more than likely end up with a whole lot of copies of the same DLL. Never a good thing.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Thaddy

  • Hero Member
  • *****
  • Posts: 18945
  • Glad to be alive.
Re: Lazarus, report and CGI
« Reply #58 on: August 25, 2017, 01:39:47 pm »
Can it be the simple case that the freetype dll is 32 bit and the compiler is a 64 bit compiler running on a 64 bit windows?
In that case, install the version from cygwin64, since the 64 bit version (gnuwin64) seems otherwise not maintained at all.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

talorigomat

  • Jr. Member
  • **
  • Posts: 96
Re: Lazarus, report and CGI
« Reply #59 on: August 26, 2017, 09:58:53 pm »
Thanks for the help everyone.  I'm using windows 64 bit system so I placed the freetype-6.dll in then syswow64 folder and everything is working ok.
 
Lazarus 1.8.0Rc4, Windows 10

 

TinyPortal © 2005-2018