Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Reports with ActiveX instead of DHTML with RAS

Status
Not open for further replies.

MisterMo

Programmer
Mar 18, 2002
564
GB
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.

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?
 
Hi,
Get this file:
ce10_com_docs_en.zip

from the Business Objects support site - it contains, along with others, the Viewer SDK help files..

Should help in developing the code needed..

[profile]
 
Guys, Thanks for your reply. Unfortunately I couldn't get any joy out of the help file and the ASP code sample as I am not experieneced enough to convert ASP to ASPX in .NET

Does any of you knows where can I get a more recent code sample with .NET and RAS10 please
 
I am not the final authority on this, however, I believe the DHTML viewer is the only one available in a .NET application.



Chris
Data Intelligence Group
 
The Article posted in the BO web site make sense, however .NET uses a different approach to create and reference objects so I believe that in order to be able to use ActiveXViewer.asp the Rptserver.asp should be modified.

I remember reading somewhere that you should be able to use older technologies such as ASP and COM in .NET, but that defy the objective.

I am still hoping to get the ActiveX viewer to work before this thing goes live otherwise will be incorporated in phase 2.

The hunt is still on and I would really appreciate any info you can dig.

Thanks again for your invaluable help

Mo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top