none
VB.net 2005 to PDF via Crystal report?? RRS feed

  • Question

  • I also posted this in the crystal reports forum but i didn't know where it needs to be.

      Hi!

    I need to export a simple document into a PDF format for storage as a column in an SQL AS400 database so size is critical.

    I suspect that i can use the built in Crystal reports to do this.

    I need it to be fully automated and not require that the form be visible.

    It would be nice if the PDF file bit stream could be intercepted before it becomes a file (Stream?).
    This way i can claim that there is no residue on any drive.

    My document is simply a POS Text recpt with a signature graphic.

    Any help would be appreciated.

    I dont want to purchase the full Crystal reports product.
    I would like to use CopyFiles for deployment. Therefore only use .net redist files.

    Thank You
    Jerry Cicierega
    Thursday, October 16, 2008 8:02 PM

All replies

  •  If the "simple document" is a local report, you can render that to pdf.
    LocalReport report = new LocalReport();  
    report.ReportEmbeddedResource = "PDFRender.Report1.rdlc"; //Or report.LoadReportDefinition(streamOfRDLC);
    string mimeType, encoding, extension;  
    string[] streamids;  
    Warning[] warnings;  
    byte[] pdfOutput = report.Render("PDF", null, out mimeType, out encoding, out extension, out streamids, out warnings); 

    Nick Allen, Microsoft SQL Server Reporting Services. This posting is provided "AS IS" with no warranties and confers no rights.
    Thursday, October 16, 2008 9:07 PM
  • Thank you nick.

    The problem is that a single page 3" x6" recpt with a signature produces a 66k pdf.
    66k is too if for a column. The emf equivilent is 23k. For me that is too big.

    I am now considereing arguing against pdf and maybe using VML. (vector Markup Language)

    Does anyone know if there is an example of vml using vb.net?

    I only need to know how to diplay text, and draw lines.

    My understanding is that IE 5.0+ supports vml.


    Thanks
    Jerry C
    Monday, October 27, 2008 12:04 AM