Has anyone made a print preview component that is cross platform? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- davesimplewear · 2010-01-14 22:06 I am looking for a print preview component that is cross platform (One that does not use tmetafile), I have not been able to find one on the net, could anyone point me in the right direction? Regards Dave ---------------------------------------------------------------------- Phil · 2010-01-14 22:25 Very good question. When I ported Dave Baldwin's HTML components, I omitted the preview since it depended, as you might expect, on TMetaFile (http://wiki.lazarus.freepascal.org/THtmlPort). I believe there is a TMetaFile for Lazarus on Windows that you could use (http://wiki.lazarus.freepascal.org/TMetafile_/_TMetafileCanvas). Note that on OS X, a separate preview function is not needed since the Print dialog includes a Preview button (as well as save to pdf button). If an app can print, it can also preview. I find, though, that in many cases, using an external viewer (typically word processor) makes for a much better previewer than any internal component. See these topics for more info: http://wiki.lazarus.freepascal.org/XDev_Toolkit --for the previous link, specifically this part: http://web.fastermac.net/~MacPgmr/XDev/XDevStatus.html#RTF http://wiki.lazarus.freepascal.org/Office_Automation http://wiki.lazarus.freepascal.org/Webbrowser Thanks. -Phil ---------------------------------------------------------------------- davesimplewear · 2010-01-14 23:45 Thanks for the reply Phil, I was looking for the component to display a print preview of a text/programmers editor that I was converting from delphi (one that I made some time ago) and had specific components for the editor-print-preview (PlusMemo) as Raymond doesn't plan on releasing his code or converting to lazarus I was looking for alternatives. The Web Browser idea interests me but I would have to parse the text to html for display and that is getting a bit complex for a simple project. Regards Dave