PDF - odd action when no records
WE have used Report Builder to create reports in various
formats for years - especially pdfs. (now version 15.x)
-Sometimes a pdf file is generated by doing a print-to-file
and specifying the filetype. Easy.
-Sometimes in code we stream the pdf by creating a pdfdevice
and using printtodevices. Slick.
A client noticed recently that if the primary pipeline SQL select
returns no records the pdf action seems to breaks down.
In that case,
Building the report and streaming it back returns a small stream
of bytes but they do not seem to constitute a valid PDF.
Printing the report to file does not create a file at all.
What we expected was a valid pdf showing the fixed header and footer
elements with mostly empty space in between.
Has anyone any experience with this?
(The Streaming case is the one that concerns us - our REST web service
is returning invalid pdf streams on some requests because of this)
using both 12.x and 15.x
This discussion has been closed.