| Oliviero Dall'Asta 2005-04-28, 8:59 am |
| I'm using this code to generate a DOC file with CR .NET and it's working
fine:
..........
Dim MyStream As System.IO.Stream
'MyStream = reportObject.ExportToStream(ExportFormatType.WordForWindows) '
for word type
MyStream = reportObject.ExportToStream(ExportFormatType.PortableDocFormat) '
for PDF
Response.ClearHeaders()
Response.ClearContent()
'Response.ContentType = "application/msword" ' for word type
Response.ContentType = "application/pdf" ' for PDF type
Dim MyBuffer(CType(MyStream.Length, Integer)) As Byte
MyStream.Read(MyBuffer, 0, CType(MyStream.Length, Integer))
Response.BinaryWrite(MyBuffer)
Response.End()
If I'm trying to generate a PDF files ( using commented lines) I've this
message error when Acrobat is starting on my client browser:
"Trovato token sconosciuto: '0,05'" ( in English,something like:
Unknow token found....)
What does it mean?
No problems generating DOC files !!
Thanks. Oliviero
|