Current filter:
                                You should refresh the page.
                                0
                                  • Hello,
                                    I have application which sends report by e-mail to clients every 7 days. This application doesn't have any user interface. Only every period of time make reports and sends to clients (as attachment).
                                    Now I prepare to use your printing system so ...
                                    Can I export any table report or chart report to the file(PDF or XML) without show it on the screen?

                                    Best Regards
                                    Wieslaw

                                • Hello Wieslaw.

                                  Thank you for your message. Yes, it is possible to export the TcxGrid without showing it. Just call the corresponding ReportLink's ExportToPDF method to export data to PDF. If you wish to export data to XML, use the ExportGridToXML method (cxGridExportLink.pas).

                                  Best regards,
                                  Ingvar.

                                • Wieslaw Kozikowski 03.30.2012

                                  Hello,
                                  Thank you for quickly answer.
                                  Everything working fine ... but I have small problem.
                                  When try to print any chart and chart doesen't fit(it's too large) to actual window(form) the printing system print also cut the chart.
                                  When I enlarge window and chart fit do the window everything is ok.

                                  So ... is it possible to print(export) all chart dosen't care about windows size from which I print(export).
                                  I setup: PrinterPage.ScaleMode=smFit;

                                  Best Regards
                                  Wieslaw

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hello,

                                Thank you for your reply.
                                This behavior is caused by the fact that a ReportLink just obtains a picture (e.g. bitmap) from the source chart. Then, the ExpressPrinting System processes it as a single picture and thus, the image may be cut off if it does not fit the cxGrid dimensions.

                                As a solution I can suggest the following:

                                1. Use the ReportLink’s PrinterPage.RealPageSizePixels property to obtain the size of the report’s page in pixels;
                                2. Create a temporary invisible chart of the exact same size or temporary enlarge the current chart;
                                3. Use this chart as a source for the ReportLink;
                                4. Rollback changes if necessary.

                                Hope, this approach will allow you to obtain a picture which will fit the report’s page better.

                                Best Regards,
                                Paulo

                                • Wieslaw Kozikowski 03.30.2012

                                  Hello,
                                  Tahanks and I will try.
                                  Best Regards
                                  Wieslaw

                                • We are looking forward to your feedback once you have had the opportunity to try this solution.

                                  Best Regards,
                                  Paulo

                                • Wieslaw Kozikowski 06.29.2012

                                  Hello,

                                  I already try your sugestion but ... RealPageSizePixels is read only propert so I can't change it.

                                  Do you have any other idea? ...it's important for me.

                                  Best Regards

                                  Wieslaw

                                • Hello,

                                  It is not necessary to change the PrinterPage.RealPageSizePixels property. I suggest you obtain this value and use it to temporarily enlarge the chart.

                                • Wieslaw Kozikowski 07.02.2012

                                  Hello,
                                  Thanks. Everythink working.
                                  Best Regards
                                  Wieslaw

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.