Solved

load a crystal report from http/ftp server?

Posted on 2010-09-21
7
500 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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