For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > May 2005 > Mail Label report in pdf - format problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mail Label report in pdf - format problem
Magnus

2005-05-15, 8:59 pm

I have created a Mail Label report for address labels.
When a view the report in the CrystalReportViewer it looks fine.

I export the report to a pdf and print the labels from there:

oStream =
(MemoryStream)oRpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.P
ortableDocFormat);
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();

Problem:
1. The size of the labels are not exactly the same as in the report, so when
I print
the report they don't match.

2. A margin (top,bottom,left and right) is added to the pdf.

Any ideas on how to print a mail label report from a browser that looks
exactly the same as in the CrystalReportViewer?

Magnus
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com