locked
Crystal Reports and VB.net

    Question

  • Hi,
                        I have an application which uses Crystal reports and VB.NET. The application generates reports using crystal reports. I need to set the file summary information such as Author,Ttitle,Comments etc dynamically to the exported file


                         How can we set the file Summary information (Summary tab-Document properties) dynamically for the exported file?. The files are exported in rtf,pdf,excel and doc format
    (No OLE File Property Reader- because i have to set the summary information for non Microsoft files also)

    Thanks
    Ranjith
    Wednesday, May 23, 2007 10:41 AM

Answers

  • Ranjithkp,

     

    It seems that the problem has no relationship with the Crystal Reports product. According to the demand on setting file summary information especially the Word document including rtf, doc, I would like to provide you an article on the issue and hope that can help you with the problem:

     

    Reading and Writing Custom Document Properties in Microsoft Office Word 2003 with Microsoft Visual Basic .NET

    http://msdn2.microsoft.com/en-us/library/aa537163(office.11).aspx

     

    Document properties in Microsoft Office Word 2003 provide a way to describe a document. Custom properties extend this ability by allowing you to define your own properties. This article illustrates how to automate Microsoft Office Word 2003 with Microsoft Visual Basic .NET to retrieve and to manipulate document properties.

    Tuesday, May 29, 2007 5:04 AM

All replies

  • Ranjithkp,

     

    It seems that the problem has no relationship with the Crystal Reports product. According to the demand on setting file summary information especially the Word document including rtf, doc, I would like to provide you an article on the issue and hope that can help you with the problem:

     

    Reading and Writing Custom Document Properties in Microsoft Office Word 2003 with Microsoft Visual Basic .NET

    http://msdn2.microsoft.com/en-us/library/aa537163(office.11).aspx

     

    Document properties in Microsoft Office Word 2003 provide a way to describe a document. Custom properties extend this ability by allowing you to define your own properties. This article illustrates how to automate Microsoft Office Word 2003 with Microsoft Visual Basic .NET to retrieve and to manipulate document properties.

    Tuesday, May 29, 2007 5:04 AM
  • Dear Bruno yu,

    Thanks for the information..
    But it doesnt fully solve our current problem. The requirement is to dynamically set the file properties of the Exported report document such as ReportAuthor,Repor ttitle Comments etc .
    The properties had to be set for the following exported file formats
    (i)rtf,(ii)pdf,(iii)doc,(iv)Excel

    The report document properties such as the following had been set


                        Reportdocument.SummaryInfo.ReportAuthor = "Test1"
                        Reportdocument..SummaryInfo.ReportTitle = "Test2"

    but this didnt succeed...
    plz go through the following link:

    http://www.crystalreportsbook.com/Crystal_Reports_Net_Ch14_2.asp

    Thanks
    Ranjith
    Tuesday, May 29, 2007 6:00 AM