Hi,
I have a LocalReport, when I'm exporting to a PDF using the following
code:
Warning[] warnings;
string mimeType;
string encoding;
string fileNameExtension;
string[] streams;
byte[] pdfContent;
string fileName;
FileStream pdfFile;
fileName = Path.GetTempPath();
fileName = Path.Combine( fileName, Report.DisplayName +
".pdf" );
pdfContent = report.Render( "PDF", null, out mimeType, out
encoding,
out fileNameExtension, out streams, out warnings );
using ( pdfFile = new FileStream( fileName,
FileMode.Create ) ) {
pdfFile.Write( pdfContent, 0, pdfContent.Length );
}
This works, except that some people that recieve the PDF cannot print
it properly. Our graphics guru was able to reproduce the problem and
said it seemed that those that didn't have postscript drivers wouldn't
be able to print the PDF. PCL drivers print the PDF fine.
Any idea what I can do to correct this? Is this a known issue?
Thanks
AndyI've been able to verify this.
Using the PCL drivers for a laser printer we have here, the PDF prints
fine. Uninstalling the print drivers and installing the PS printer
drivers, and we get one page with a few portions of text, followed by
a second page with this text:
ERROR: unmatchedmark
OFFENDING COMMAND: ]
STACK:
8
Any ideas?|||I've narrowed it down a bit more. I have an embedded PNG in the rdlc
file; if I remove the Image control which displays the png from the
report, it prints fine.|||On Aug 30, 11:51 am, Andy <an...@.med-associates.com> wrote:
> I've narrowed it down a bit more. I have an embedded PNG in the rdlc
> file; if I remove the Image control which displays the png from the
> report, it prints fine.
So I don't know if the particular PNG I was using was corrupt, or if
LocalReport.Render simply can't handle PNGs, but changing the PNG to a
JPG and using the JPG has fixed the issue, in case anyone else has
this problem.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment