I have a report that I've created that is consumed by a Windows Form application that displays the report, and then exports the report to PDF and Microsoft Word.
In one section of the report, I am using the PictureBox control to load the thumbnail image, and this works fine. I also want the users to be able to drill down or click on the image and have it launch the actual image.
My directory structure looks like this
C:\Reports ---Main Report Directory
C:\Reports\0001 ---Client Directory
C:\Reports\0001\0002 ---Project Directory
C:\Reports\0001\0002\Report ---Actual directory where the PDF / Word document versions of the reports are exported too.
C:\Reports\0001\0002\Report\Thumbs ---Directory where the thumbnail sized images are stored.
C:\Reports\0001\0002\Report\Images ---Directory where the full sized images are stored.
So, my code exports the PDF / Word documents to the directory named C:\Reports\0001\0002\Report
If I code my Action up like this, using a physical path, everything works fine:
Dim strDrillDownURL As String = "file:///C:/Reports/0001/0002/Report/Images/12345.jpg"
Dim UrlAction1 As New Telerik.Reporting.NavigateToUrlAction()
UrlAction1.Target = UrlTarget.NewWindow
UrlAction1.Url = strDrillDownURL
Me.imgThumbNail.Value = "C:\Reports\0001\0002\Report/Thumbs\12345.jpg"
Me.imgThumbNail.Action = UrlAction1
When the user opens the PDF or the Word Document and clicks on the thumbnail image associated with the picture, a new window pops open with the full sized image.
However, in my situation, I will need to copy this report directory to a thumb drive and send it to my client. With this in mind, I want to be able to change the drill down action to use a relative path so that if this thumbnail drive becomes their E: drive, they will still be able to click through to the full sized images.
With this in mind, I've tried many variations of the file:/// relative path implementation, but have yet to find one that works. My current rendition looks something like this:
Dim strDrillDownURL As String = "file:///./Images/12345.jpg"
Dim UrlAction1 As New Telerik.Reporting.NavigateToUrlAction()
UrlAction1.Target = UrlTarget.NewWindow
UrlAction1.Url = strDrillDownURL
Me.imgThumbNail.Value = "C:\Reports\0001\0002\Report/Thumbs\12345.jpg"
Me.imgThumbNail.Action = UrlAction1
I've spent many hours on Google to try to determine what the proper syntax to use for my drill down URL. I've come close, in many cases, but I must I am at a loss here.
Does anyone have any suggestions?
Thanks.
In one section of the report, I am using the PictureBox control to load the thumbnail image, and this works fine. I also want the users to be able to drill down or click on the image and have it launch the actual image.
My directory structure looks like this
C:\Reports ---Main Report Directory
C:\Reports\0001 ---Client Directory
C:\Reports\0001\0002 ---Project Directory
C:\Reports\0001\0002\Report ---Actual directory where the PDF / Word document versions of the reports are exported too.
C:\Reports\0001\0002\Report\Thumbs ---Directory where the thumbnail sized images are stored.
C:\Reports\0001\0002\Report\Images ---Directory where the full sized images are stored.
So, my code exports the PDF / Word documents to the directory named C:\Reports\0001\0002\Report
If I code my Action up like this, using a physical path, everything works fine:
Dim strDrillDownURL As String = "file:///C:/Reports/0001/0002/Report/Images/12345.jpg"
Dim UrlAction1 As New Telerik.Reporting.NavigateToUrlAction()
UrlAction1.Target = UrlTarget.NewWindow
UrlAction1.Url = strDrillDownURL
Me.imgThumbNail.Value = "C:\Reports\0001\0002\Report/Thumbs\12345.jpg"
Me.imgThumbNail.Action = UrlAction1
When the user opens the PDF or the Word Document and clicks on the thumbnail image associated with the picture, a new window pops open with the full sized image.
However, in my situation, I will need to copy this report directory to a thumb drive and send it to my client. With this in mind, I want to be able to change the drill down action to use a relative path so that if this thumbnail drive becomes their E: drive, they will still be able to click through to the full sized images.
With this in mind, I've tried many variations of the file:/// relative path implementation, but have yet to find one that works. My current rendition looks something like this:
Dim strDrillDownURL As String = "file:///./Images/12345.jpg"
Dim UrlAction1 As New Telerik.Reporting.NavigateToUrlAction()
UrlAction1.Target = UrlTarget.NewWindow
UrlAction1.Url = strDrillDownURL
Me.imgThumbNail.Value = "C:\Reports\0001\0002\Report/Thumbs\12345.jpg"
Me.imgThumbNail.Action = UrlAction1
I've spent many hours on Google to try to determine what the proper syntax to use for my drill down URL. I've come close, in many cases, but I must I am at a loss here.
Does anyone have any suggestions?
Thanks.