Hi guys,
I can't seem to be able to find any reference in how to set this one up.
I am using CE Embedded 10 (RAS) on W2K platform.
I have managed to find how to print directly to local printer without having to export to Acrobat files but I would much prefer to ActiveX Viewer.
someone posted a similar question on BO DevZone but there is no replay?????
Can you help me please?
I can't seem to be able to find any reference in how to set this one up.
I am using CE Embedded 10 (RAS) on W2K platform.
I have managed to find how to print directly to local printer without having to export to Acrobat files but I would much prefer to ActiveX Viewer.
Code:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
InitializeComponent()
Dim ReportName As String
ReportName = Request.Params("@ReportPath").ToString & Request.Params("@ReportName").ToString
rptClientDoc.Open(ReportName)
Dim i As Integer
Dim ParamValue As New ParameterFieldDiscreteValue
Dim ParamValues As New CrystalDecisions.ReportAppServer.DataDefModel.Values
Dim Value As String
Dim ParameterName As String
For i = 0 To rptClientDoc.DataDefController.DataDefinition.ParameterFields.Count() - 1
ParameterName = rptClientDoc.DataDefController.DataDefinition.ParameterFields(i).Name
Value = Request.Params(rptClientDoc.DataDefController.DataDefinition.ParameterFields(i).Name).ToString
ParamValue = New ParameterFieldDiscreteValue
ParamValue.Value = Value
ParamValues.RemoveAll()
ParamValues.Add(ParamValue)
rptClientDoc.DataDefController.ParameterFieldController.SetCurrentValues("", ParameterName, ParamValues)
Next
Crystalreportviewer1.ReportSource = rptClientDoc
[b][COLOR=blue]Crystalreportviewer1.PrintMode = CrystalDecisions.Web.PrintMode.ActiveX[/color][/b]
End Sub
someone posted a similar question on BO DevZone but there is no replay?????
Can you help me please?