Recent

Author Topic: print preview  (Read 5451 times)

djleshouze

  • Newbie
  • Posts: 4
print preview
« on: June 13, 2014, 09:35:14 am »
did anyone ported this component to Lazarus?

http://www.delphiarea.com/products/delphi-components/preview/

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: print preview
« Reply #1 on: June 13, 2014, 09:37:34 am »
its not possible to ported in a cross platform way, it uses metafiles internally and lazarus does not support metafiles.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

djleshouze

  • Newbie
  • Posts: 4
Re: print preview
« Reply #2 on: June 13, 2014, 09:39:10 am »
is there an alternative ?

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: print preview
« Reply #3 on: June 13, 2014, 09:40:15 am »
none that I know off.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

djleshouze

  • Newbie
  • Posts: 4
Re: print preview
« Reply #4 on: June 13, 2014, 09:57:49 am »

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: print preview
« Reply #5 on: June 13, 2014, 10:06:57 am »
its windows only as far as I can see and I've seen some where that it has it s problems too.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

djleshouze

  • Newbie
  • Posts: 4
Re: print preview
« Reply #6 on: June 13, 2014, 10:09:40 am »
do you have a other idea for make this in Lazarus?

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: print preview
« Reply #7 on: June 13, 2014, 10:24:09 am »
use lazreport?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1249
Re: print preview
« Reply #8 on: June 13, 2014, 12:11:44 pm »
I assumed LazReport was DB only.  Can it be used in non-DB mode?  (Not that I know what @djleshouze want's the component for, I'm only asking for myself)
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: print preview
« Reply #9 on: June 13, 2014, 02:19:38 pm »
It should yes, for example add in a report a rectangle object (as they call it) set autosize and wordwarp to true and try to set its contents (text?) to a text big enough to require 2 or 3 pages it should autosize it and preview 2 or 3 pages, this does not work with the image though, it doesn't understands horizontal page change only vertical, it needs a better image printing control.
« Last Edit: June 13, 2014, 02:22:14 pm by taazz »
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64