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
Assign default value to array
How do I programmatically set the recordsource in a subreport?
SQL datetime issue: The following 2 sections of code produce different results.
Outlook 2007 SBS 2008 (exchange 2007) Password Screen Popping Up
How to recover moved files and deleted files from Windows machine
Creative SB0460 - Windows 7
Formulas aren't calculating automatically
based on one column value populate another column
BSOD on Windows 2000 server Bug Check UNEXPECTED_KERNEL_MODE_TRA<wbr />P (7f)
validating parameters in batch file