How can I use RDLC Reports to print a receipt with variable height? The height needs to be the sum of all elements inside the report. My report can grow and shrink in size.
My device info xml used inside the export method:
<DeviceInfo>
<OutputFormat>EMF</OutputFormat>
<PageWidth>6.5cm</PageWidth>
<PageHeight>10cm</PageHeight>
<MarginTop>0cm</MarginTop>
<MarginLeft>0cm</MarginLeft>
<MarginRight>0cm</MarginRight>
<MarginBottom>0cm</MarginBottom>
</DeviceInfo>
I've tried to sum the height of each item and set PageHeight to it but this doesn't work.
Here is a MSDN page where we can find a complete example.