Microsoft
Software
Hardware
Network
Question : Open Sharepoint server's pdf file in asp.net...
Hi,
Want to Open a pdf file in asp.net which is in the sharepoint server..
I 've used the code below...
System.Net.WebClient client = new System.Net.WebClient();
string path = "
http://hawaii:9999/Functi
ons/HumanR
esource/HR
/
Employee%
20Handbook
/GE%20Emp%
20Handbook
.pdf
";
Byte[] buffer = client.DownloadData(path);
if (buffer != null)
{
Response.ContentType = "application/pdf";
Response.AddHeader("conten
t-length",
buffer.Length.ToString());
Response.BinaryWrite(buffe
r);
}
Then its giving exception like
The remote server returned an error: (401) Unauthorized.
what to do to solve this problem..
Answer : Open Sharepoint server's pdf file in asp.net...
HI the ip nat ouside need to Dialer interface:
interface Dialer1
ip nat outside
ip nat indise source list 1 interface dialer1 overload
access-list 1 permit 192.168.1.0 0.0.0.255
Random Solutions
Mixed 2003/2008 Environment Needs A Domain Rename
Securing an MMO game against cheaters
How do I add missing Active X controls to non-admin accounts in Microsoft Access 2003?
forward an e-mail address in Exchange 2003 to an external address
Need a simple script
Insert formula to range
Migrate from Mac Mini OSX to PC Win 7
Quicken by Intuit, How do I import
VB.NET - Value was either too large or too small for a Decimal Exception - Smooth Progress Meter DLL from Microsoft
Can I delete only the visible rows without having to select visible