Help with Report Layout
I need to print the following as a report layout:
1. First page contains an image - page and overall report page size to
stretch to this image size
2. Second page also contains an image - page and overall report page size to
stretch to this image size
3. A table of values with an image in one of the cells - page and overall
report page size to stretch as well
4. Output report to PDF
I understand that the report size is not conventional and will be of a
custom size. Can this be done and how would I do this? An example project
would help tremendously.
Thanks for any help in advance.
Andy
1. First page contains an image - page and overall report page size to
stretch to this image size
2. Second page also contains an image - page and overall report page size to
stretch to this image size
3. A table of values with an image in one of the cells - page and overall
report page size to stretch as well
4. Output report to PDF
I understand that the report size is not conventional and will be of a
custom size. Can this be done and how would I do this? An example project
would help tremendously.
Thanks for any help in advance.
Andy
This discussion has been closed.
Comments
The easiest way to keep an easy separation of pages like you need to with
this report is to use Section style subreports.
1. Create a new Main report and remove all bands except the detail band.
2. Add three subreports to the detail band and set their style to Section.
3. Inside the first subreport, place the first-page image, second
subreport, second-page image, and third subreport, connect the proper data
and create your table.
When you view/print this report each subreport will start on a separate page
keeping complete separation between the three sections in the main report.
It is also possible to have each separate section use its own print settings
using the NewPrintJob property.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
How can I specify the size of the report based on the size of the image in
the first or second page?
Thanks
Andy
I'm a bit unclear about this requirement. If you are printing this report
to paper, you will need to size the image to the paper size. Are you just
planning on viewing this report on screen or export is as a PDF perhaps?
It is possible to change the size of the page however you will need to know
the size of the image before the report is generated to do so. You could
use the TGraphic.Height and Width properties to find the size of the image,
then use the Report.PrinterSettings.PageWidth and PageHeight to define the
size of the report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com