Hi,
I want to show PDF file Iframe into Radwindow. if file folder should be website means it is working file. like (/PDFfile/13.pdf). but i have folder outside the webiste but same server. it is name like blobdir. so if i show the pdf iframe means i want to get full src.
i used another method like,
Dim strFilePath As String = strPath & Report_file_name.Value
If File.Exists(strFilePath) Then
_FileName = Report_file_name.Value
fs = File.Open(strFilePath, FileMode.Open)
Else
_FileName = Server.MapPath("EmptyFile.txt")
fs = File.Open(strFilePath, FileMode.Open, FileAccess.Read)
End If
Dim bytBytes(fs.Length) As Byte
fs.Read(bytBytes, 0, fs.Length)
fs.Close()
fs.Dispose()
Page.Response.BinaryWrite(bytBytes)
Page.Response.Flush()
Page.Response.End()
but is downloaded from server. and asking save, cancel.
i want to display into iframe from server folder,
i am using the code like
iframe1.Attributes.Add("src", "//patrick//blob_dir//1033322RISK_ACKNOWLEDGEMENT.PDF")
how to get full path for this folder,
Please give me a tips for this one..
Thanks in Advance,
Dhamu.
Have a nice day....
I want to show PDF file Iframe into Radwindow. if file folder should be website means it is working file. like (/PDFfile/13.pdf). but i have folder outside the webiste but same server. it is name like blobdir. so if i show the pdf iframe means i want to get full src.
i used another method like,
Dim strFilePath As String = strPath & Report_file_name.Value
If File.Exists(strFilePath) Then
_FileName = Report_file_name.Value
fs = File.Open(strFilePath, FileMode.Open)
Else
_FileName = Server.MapPath("EmptyFile.txt")
fs = File.Open(strFilePath, FileMode.Open, FileAccess.Read)
End If
Dim bytBytes(fs.Length) As Byte
fs.Read(bytBytes, 0, fs.Length)
fs.Close()
fs.Dispose()
Page.Response.BinaryWrite(bytBytes)
Page.Response.Flush()
Page.Response.End()
but is downloaded from server. and asking save, cancel.
i want to display into iframe from server folder,
i am using the code like
iframe1.Attributes.Add("src", "//patrick//blob_dir//1033322RISK_ACKNOWLEDGEMENT.PDF")
how to get full path for this folder,
Please give me a tips for this one..
Thanks in Advance,
Dhamu.
Have a nice day....