{"id":215,"date":"2021-08-30T15:08:30","date_gmt":"2021-08-30T15:08:30","guid":{"rendered":"https:\/\/www.trichview.com\/wp\/?p=215"},"modified":"2021-08-30T15:08:32","modified_gmt":"2021-08-30T15:08:32","slug":"trichview-19-4-printing-in-firemonkey-version","status":"publish","type":"post","link":"https:\/\/www.trichview.com\/wp\/2021\/08\/30\/trichview-19-4-printing-in-firemonkey-version\/","title":{"rendered":"TRichView 19.4 &#8211; printing in FireMonkey version"},"content":{"rendered":"\n<p>TRichView is updated to version 19.4.<\/p>\n\n\n\n<p>The new release includes the second version for FireMonkey (still Windows platform only).<\/p>\n\n\n\n<p>Trial versions are available:&nbsp;<a href=\"https:\/\/www.trichview.com\/download\/\">https:\/\/www.trichview.com\/download\/<\/a><br>A full version can be found in the protected section of this forum (or old setups can check for updates and download new versions).<\/p>\n\n\n\n<p>New in this update (in FireMonkey version):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>printing and print preview<\/li><li>justify alignment<\/li><li>zooming<\/li><li>IME input (for East Asian languages)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Printing for FireMonkey<\/h2>\n\n\n\n<p>The following components are ported to FireMonkey in this update:<br><a href=\"https:\/\/www.trichview.com\/help\/idh_class_trvprint.html\" target=\"_blank\" rel=\"noreferrer noopener\">TRVPrint<\/a>&nbsp;&#8211; component for printing TRichView document<br><a href=\"https:\/\/www.trichview.com\/help\/idh_class_trvreporthelper.html\" target=\"_blank\" rel=\"noreferrer noopener\">TRVReportHelper<\/a>&nbsp;&#8211; component for drawing TRichView document on the specified canvas (for example, in TBitmap or a printer)<br><a href=\"https:\/\/www.trichview.com\/help\/idh_class_trvprintpreview.html\" target=\"_blank\" rel=\"noreferrer noopener\">TRVPrintPreview<\/a>&nbsp;&#8211; print preview component.<\/p>\n\n\n\n<p class=\"has-text-align-left\">In FireMonkey, TRVPrintPreview is the most tricky component, because screen and printer may use different canvas types (In Windows, it is Direct2D canvas on the screen, and GDI+ canvas for printing). TRVPrintPreview must be able to use the both canvases.<\/p>\n\n\n\n<p class=\"has-text-align-left\">Instead of Color property, FireMonkey version of TRVPrintPreview has&nbsp;<a href=\"https:\/\/www.trichview.com\/help\/idh_tcustomrvprintpreview_color_.html\">Fill: <\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/www.trichview.com\/help\/idh_tcustomrvprintpreview_color_.html\" target=\"_blank\">TBrush&nbsp;<\/a>property, so you can apply a gradient or a textured fill. Page shadow may use a semitransparent color.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Justify alignment<\/h2>\n\n\n\n<p>In additional to left, right and center alignments, this update adds &#8220;justify&#8221; alignment: the text is aligned to the both sides by increasing width of space characters.<br>Internally, TRichView implements this type of alignment using two completely different algorithms: an universal algorithm (used by GDI+ canvas) and optimized Direct2D algorithm.<\/p>\n\n\n\n<p>The both of them support bi-directional text.<\/p>\n\n\n\n<p>PS: &#8220;distributed&#8221; alignment (aligning text to the both sides by increasing intercharacter spacing) is still not implemented in FMX, only in VCL and LCL version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Zooming<\/h2>\n\n\n\n<p>In VCL\/LCL version, document can be zoomed by specifying the pixel density for drawing in&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.trichview.com\/help\/idh_trichview_documentpixelsperinch.html\" target=\"_blank\">DocumentPixelsPerInch<\/a>&nbsp;property.<\/p>\n\n\n\n<p>In FireMonkey version, a similar functionality is implemented by <a href=\"https:\/\/www.trichview.com\/help\/idh_trichview_zoompercent.html\" target=\"_blank\" rel=\"noreferrer noopener\">ZoomPercent <\/a>property. By default, it is equal to 100 (meaning 100% zoom). To zoom in\/out, assign a new value to this property and call Reformat (or Format).<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-text-align-left\">The example shows how multiresolutional images from TImageList work in TRichView for FireMonkey.<br>Let we have a TImageList that includes several versions of the same picture for different resolutions:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1667\" alt=\"imagelist.png\"><\/p>\n\n\n\n<p class=\"has-text-align-left\">Let we insert 16&#215;16 picture:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1668\" alt=\"zoom100.png\"><\/p>\n\n\n\n<p class=\"has-text-align-left\">Now let&#8217;s zoom to 200%:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1669\" alt=\"zoom200.png\"><\/p>\n\n\n\n<p>As you can see, 32&#215;32 image is used instead of 16&#215;16 image.<\/p>\n\n\n\n<p class=\"has-text-align-left\">How this picture is printed? Let we have 600 dpi printer. 16&#215;16 image will be printed as 100&#215;100. The component chooses the most appropriate available image (64&#215;64) and scales it to 100&#215;100:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1670\" alt=\"printpreview-imagelist.png\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>IME<\/strong><\/h2>\n\n\n\n<p>An input method (or input method editor, commonly abbreviated IME) allows the user of Latin keyboards to input Chinese, Japanese, Korean and Indic character, as well as special characters like emoticons.<\/p>\n\n\n\n<p>Since this update, FireMonkey version supports IME:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><br><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1671\" alt=\"ime.png\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demo projects<\/h2>\n\n\n\n<p>The following changes were made in demo projects for FireMonkey:<\/p>\n\n\n\n<p>1)&nbsp;<strong>Editors\\Editor 2\\<\/strong>&nbsp;demo has additional functionality:<br>&#8211; print and print preview<br>&#8211; button to apply &#8220;justify&#8221; aligmnent<br>&#8211; combo box to apply zoom (bottom right corner of the demo)<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1673\" alt=\"printpreview.png\"><br><\/p>\n\n\n\n<p class=\"has-text-align-left\">2)\u00a0<strong>Editors\\Notes\\<\/strong>\u00a0&#8211; editor with footnotes and endnotes<\/p>\n\n\n\n<p>3)&nbsp;<strong>Assorted\\Graphic\\ToImage\\<\/strong>&nbsp;shows how to use TRVReportHelper components to make an image from document.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img decoding=\"async\" src=\"https:\/\/www.trichview.com\/forums\/download\/file.php?id=1672\" alt=\"toimage.png\"><\/p>\n\n\n\n<p class=\"has-text-align-left\"><br>4)&nbsp;<strong>Assorted\\Printing\\Printing\\<\/strong>&nbsp;shows how to print and displays a print preview. The printed document contains images and FMX controls.<\/p>\n\n\n\n<p>5)&nbsp;<strong>Assorted\\Printing\\Headers\\<\/strong>&nbsp;shows how to print a document containing headers and footers (up to 3 headers\/footers: for the first page, even pages, other pages)<\/p>\n\n\n\n<p>6)&nbsp;<strong>Assorted\\Printing\\ReportHelper\\<\/strong>&nbsp;shows how to use TRVReportHelper component for printing (to print in one or two columns)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">UI translations<\/h2>\n\n\n\n<p>The following translation of UI was updated for RichViewActions and ScaleRichView:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Thai<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>TRichView is updated to version 19.4. The new release includes the second version for FireMonkey (still Windows platform only). Trial versions are available:&nbsp;https:\/\/www.trichview.com\/download\/A full version can be found in the protected section of this forum (or old setups can check for updates and download new versions). New in this update (in FireMonkey version): printing and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6,15,10],"tags":[],"class_list":["post-215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcement","category-firemonkey","category-trichview"],"uagb_featured_image_src":{"full":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey.png",798,703,false],"thumbnail":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey-150x150.png",150,150,true],"medium":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey-300x264.png",300,264,true],"medium_large":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey-768x677.png",768,677,true],"large":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey.png",798,703,false],"1536x1536":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey.png",798,703,false],"2048x2048":["https:\/\/www.trichview.com\/wp\/wp-content\/uploads\/2021\/08\/Printpreview-firemonkey.png",798,703,false]},"uagb_author_info":{"display_name":"Sergey Tkachenko","author_link":"https:\/\/www.trichview.com\/wp\/author\/sergey-tkachenko\/"},"uagb_comment_info":171,"uagb_excerpt":"TRichView is updated to version 19.4. The new release includes the second version for FireMonkey (still Windows platform only). Trial versions are available:&nbsp;https:\/\/www.trichview.com\/download\/A full version can be found in the protected section of this forum (or old setups can check for updates and download new versions). New in this update (in FireMonkey version): printing and&hellip;","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":1,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/posts\/215\/revisions\/217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/media\/216"}],"wp:attachment":[{"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trichview.com\/wp\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}