المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : PDF is not shown in Windows Form



C# Programming
10-01-2009, 04:11 AM
Dear All,
I have Adobe Reader Control in my Win Form. I am loading pdf files from Remote Server into this control.
Well, among Thousand of Files there are about 10 Files which can not be opened by Adobe Reader Control.
I am using Adobe Reader 8.0
For Test only, I copied those files from remote server to Drive C of my computer.
Then I made an application to show these PDF files.
Every thing worked correctly from my drive C.
let me mentioned that among thousands of files in remote server i can not only show these 10 files in adobe control other files are shown accurately.
Even I Tested WebBrowser Control to show these files from remote server but failure.

Let me make sure that file exists in remote sever. I am asking why these 10 files can not be shown from remote server? while i can browse these files using Adobe Reader 8.0 and the same i can browse them when i copy them to my c drive.
for sample code

string filePath=statee.ToString();
webVr.LoadFile(filePath);

webVr is the Adobe Control.

any ideas?

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan