How to export crystal report to word document. I'm stuck one step behind u. I've written following code. but getting error at highlighted line. CrEmReport is crystalReportViewer object
Me.CrEmReport.ParameterFieldInfo.Clear() Me.CrEmReport.ReportSource =Server.MapPath("EmCallupReport.rpt") Dim ParamFields As ParameterFields = Me.CrEmReport.ParameterFieldInfo Dim emTicketId As New ParameterField emTicketId.Name = "VTICKETID" Dim emTicketId_Value As New ParameterDiscreteValue emTicketId_Value.Value = objTicket.ticketId emTicketId.CurrentValues.Add(emTicketId_Value) ParamFields.Add(emTicketId) For Each cnInfo As TableLogOnInfo In Me.CrEmReport.LogOnInfo cnInfo.ConnectionInfo = ConnInfo
Next Dim strDate As String = Convert.ToString(objTicket.emRaisedDate) Dim objReportDoc As New ReportDocument objReportDoc = CrEmReport.ReportSource
objReportDoc.ExportToDisk(ExportFormatType.PortableDocFormat,
"\\app_data\\uploads\\Reports\\Emergency\\Emergency_" &
objTicket.deptName & "_" & strDate)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum