Solved

load a crystal report from http/ftp server?

Posted on 2010-09-21
7
494 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

18 Experts available now in Live!

Get 1:1 Help Now