Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: XML Data Source Post Reply Post New Topic
Author Message
Freghete
Newbie
Newbie


Joined: 24 Apr 2008
Location: Italy
Online Status: Offline
Posts: 1
Quote Freghete Replybullet Topic: XML Data Source
    Posted: 24 Apr 2008 at 8:58am
This is the scenario.

I use CR XI Dev R2, and I've a report building on a XML data source, within an xsd file (no local path, but http path).
The problem is that from a classic asp page, I don't know how change the xml file data source.

Here is the actual code that I use to show a simple report that is connected to an sql db:

<%@ LANGUAGE="VBSCRIPT" %>
<%
reportName = Request.QueryString("rpt")
xmlfile = Request.QueryString("newxmlfile")
%>                                                        
<!-- #include file="AlwaysRequiredSteps.asp" -->
<%
Set mainReportTableCollection = Session("oRpt").Database.Tables
For Each mnTable in mainReportTableCollection
    With mnTable.ConnectionProperties
     .Item("User ID") = "SQLTest"
     .Item("Password") = "sqltest"
     .Item("Database") = "SQLTest"
     .Item("Server") = Request.ServerVariables("SERVER_NAME")
    End With
Next
' ***
' What I'll write HERE to set xmlfile like new datasource instead the code for connection to sql?
'
'
' ***
%>
<!-- #include file="MoreRequiredSteps.asp" -->
<!-- #include file="SmartViewerActiveX.asp" -->

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.016 seconds.