Solved

load a crystal report from http/ftp server?

Posted on 2010-09-21
7
496 Views
Last Modified: 2013-11-26
Hi,
I want to know is a way to load a crystal report file .rpt from internet by http/ftp?

Thank you!
Francis

        reportdoc.Load("http:/kennam/cr/allCustomerNotPaid3MonthReport.rpt")
instead of
        reportdoc.Load("U:\kennam\crallCustomerNotPaid3MonthReport.rpt")
0
Comment
Question by:fsze88
  • 4
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 33726963
Yes, there is.

What version of Crystal?

mlmcc
0
 
LVL 15

Author Comment

by:fsze88
ID: 33726969
Crystal report 2008
0
 
LVL 12

Accepted Solution

by:
Mohamed Abowarda earned 500 total points
ID: 33732993
You can download the crystal report file and then load it normally from your hard drive:

Downloading files from internet (HTTP):
http://www.vbdotnetheaven.com/UploadFile/bfarley/FileDownload04182005043858AM/FileDownload.aspx

Downloading files from FTP:
' Get the object used to communicate with the server.

        Dim request As FtpWebRequest = DirectCast(WebRequest.Create("ftp://www.example.com/test.htm"), FtpWebRequest)

        request.Method = WebRequestMethods.Ftp.DownloadFile



        ' This example assumes the FTP site uses anonymous logon.

        request.Credentials = New NetworkCredential("anonymous", "example@domain.com")



        Dim response As FtpWebResponse = DirectCast(request.GetResponse(), FtpWebResponse)



        Dim responseStream As Stream = response.GetResponseStream()

        Dim reader As New StreamReader(responseStream)

        Console.WriteLine(reader.ReadToEnd())



        Console.WriteLine("Download Complete, status {0}", response.StatusDescription)



        reader.Close()

        response.Close()



        Console.ReadLine()

Open in new window

0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 15

Author Comment

by:fsze88
ID: 33733544
ohss...

I think Crystal report 2008 is NO build in this function....
I discovered SSRS have this function... that why I asking this question
but Medo3337 comment may be the only way can do

Thank you!
Francis SZE
0
 
LVL 15

Author Comment

by:fsze88
ID: 33755135
did Crystal report 2008 has this build in function?
anymore idea?
0
 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 500 total points
ID: 33755232
Currently, there is no function that download the file and open it for you, you will have to do so yourself, even if there is a function, it will download the file into temp folder and then open it normally from your hard drive, my solution is the only way to perform what you need.
0
 
LVL 15

Author Closing Comment

by:fsze88
ID: 33755280
good
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now