export results to string.

I want to send a small report to a cell phone. I'm using vb2005 and cr XI. How do I get the report result to a string

Answer this question

export results to string.

  • firemaker86

    A simple approach that comes in my mind is:

    1 - Export that report to .rtf or .pdf format

    ReportDocument.Export ("File Path" , "Format");

    2 - Try to read the file into a Stream of bytes

    FileStream file = new FileStream ("New file",FileMode.Open);

    byte [] data = new byte [ file.lenth];

    file.Read(b,0,b.length);

    3 - Save that Stream of bytes into XML format

    that XML file or document is portable anywhere.



  • export results to string.