Hi Good Guys,
I need your help. Please help me.

While developing VBNet2008 Window Application to automate Crystal Report printing I encountered this error message : "THIS VALUE IS WRITE ONLY"

On the vbnet FORM, crystal report viewer object was embedded to allow the user to view the report prior to printing it. The crystal Report control, AxCrystalActiveXReportViewer1 was obtained from the ToolBox like all VbNet controls.

This is the coding

Code:
Option Explicit On

Imports System.Data.SqlClient
Imports System.Data
Imports System.Drawing

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.shared
Imports CrystalDecisions.Windows.Forms


Public Class FrnTextCryReportViewer

    Private Sub btnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click

        Try
            Dim cryfolder As String = "F:\VbNet2008CrystalReport\ CrystalReportOrderDetails.rpt"
            Dim cryRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument

            cryRpt.Load(cryfolder)  
		
            With  Me.AxCrystalActiveXReportViewer1	
                     .ReportSource = cryRpt  <--- generate error "This value is Write-only "
                      .Refresh()
            End With

        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

    End Sub

Thank you.

Have a Good Day.

Cheers,
Lennie