Remote Document Retrieval From Http
Aug 16, 2010
I have been doing some research to determine an efficient and secure way to pass a document located on another server in the network to our web server and then on to the intranet user that requested it. While I have found plenty of ways to do this, I am not that experienced with this scenario as I have always just served documents stored locally on the web server and located nowhere else.
Our document server is shared in the domain and everyone has access to it and depending on their permissions, can access many files. I was thinking that I could possibly grab a file if I could pass the intranet users credentials but I don't know where to look to do that.
I was also thinking that maybe a webservice could do what I need but that just doesn't seem right to me because I am kinda guessing that there is already a .net library available that already handles something like this but am unsure as to what it is.
View 2 Replies
ADVERTISEMENT
Feb 20, 2010
In PHP you can use fopen(Path) to read from a file. The Path can be either a local file (in the usual formats /etc/file or c:file.txt) OR it can be a URL in which case PHP will open a http connection and read from the remote location
I'd like to achieve the same in VB.Net. I'm not aware of any framework function which will achieve this.
I'm currently pattern matching the path against a Regex for a valid URL - If I get a match, I open the file using a httpwebrequest otherwise I try to use the local file system.
Private Function RetrieveBGImage() As Image
Dim Ret As Image
If Not (IsURL(_BackgroundImage) Or IsLocalFile(_BackgroundImage)) Then
Throw New Exception(String.Format("Unable to load from uri ""{0}""",
[Code].....
NB: I'm aware that the logic above is inefficient and actually ends up calling IsURL() more than it has to
View 2 Replies
Apr 8, 2009
[code] What I want to know is, if this is the right way to load an XML of a server, If yes, How do I handle exceptions like "Server Error 500" etc.I also want a nice little progress bar to show the user that the XML is being loaded of the server, How do I change the responseTimeOut.If No, How do I load an XML of a server??
View 4 Replies
Feb 19, 2011
posting my XML document to a url in VB.NET. Here's what I have so far ...
Public Shared xml As New System.Xml.XmlDocument()
Public Shared Sub Main()
Dim root As XmlElement
[Code]....
View 2 Replies
Jan 17, 2009
Anyone know anymore .DLL Files that are like this?
HTTP client component for communicating with HTTP servers. [URL]
Im looking for something that acts like Web Browser Control But it is not. It should be like HttpWebRequest Class But handle the stuff properly like a Web Browser Control Does.
So i found Chilkat HTTP .NET
View 4 Replies
Sep 28, 2011
I have the following column values in my table Sample values:
[URL]
I want to have 2 variables having the links and content separate - example:
[URL]
I guess it can be done via String functions or regular expression.
View 2 Replies
Oct 12, 2009
Compact framework)As I said previous I thought I would dabble in c# for my new project, and as I thought its turning out to be a nightmare I created this control in VB and now I'm porting it to c#.
In my control I have a PageListCollection (Similar to Listviews ListViewCollection)
[Code]...
View 1 Replies
Mar 25, 2010
1. I need to pull some data from a text file separated by a space and put it in a drop down, the first value is supposed to be the text and the second value (separated by a space) is the value of the selection. I think I need to use an array and a System.Net.WebClient. How do I approach this?
2. I want to display some data from a text file into a gridview, so using datagridview, but I want them to be able to enable and disable a checkbox in these rows (using a listview?)
View 5 Replies
Jun 21, 2010
is there anyway to retrieve and list all the attributes for an active directory user to be used for updating with using the following
de.properties.contains(propertyName)
View 1 Replies
May 9, 2011
I want to retreive customer information from microsoft sql server database using just his/her user id onto a web form.
View 1 Replies
Feb 16, 2011
I have created a working report, included a sub-report that is linked to another RDLC file in the same project.The sub report fails to load with : Data retrieval failed for the subreport, 'Subreport1', located at: WML_WS.MediaCur.rdlc. Please check the log files for more information.My question is, where are the 'log files'.I have the following code:
ublic Class frmProofSheet
Public Property Caption() As String
Public Property BookingNo() As String[code]....
View 3 Replies
Jul 7, 2011
I have the following snippet:
liNoSheets = My.Resources.NoSheets
ReDim lsSheetName(liNoSheets - 1)
lsSheetName(0) = My.Resources.Sheet1Name
[Code].....
View 2 Replies
Jan 26, 2010
I am trying to retrieve mails from my mail account which is working, but I'm facing two problems
1. Text mail (No-attachments) appear correctly but they include some characters like "=20" , I don't Know if there problem is in the Encoding.
2. Mails With attachments appear in a very strange format, So I don't know if there's anyway to get the attachment itself Function to Retrieve Message:
HTML
Function GetMessage(ByVal msgindex As Integer) As String
Dim tmpString As String
Dim Data As String
[code]....
View 1 Replies
Aug 28, 2009
OK, so I've been trying to look into a webservice.I'm not really sure what is going on with them.I haven't been able to find anything that really explains what the purpose and reason for them are. I suppose maybe that is because they can serve many purposes?
View 7 Replies
Jan 1, 2012
I know there are tools available to rectify this, but somehow i cannot make out the mistake(s) that disallowed the retrieval of records, despite 2 hours of trying and referencing.
[code]...
View 2 Replies
Aug 31, 2009
First off I am fairly new to VB .net however I have had some success in my project so far. I am creating a simple envelope accounting program for personal use. So far I have some basic forms created and have my class defined and a few methods for calculating my balances as well as changing the property data I want to work with. I now want to take this property data and save it to an xml file that I can easily retrieve the data into another form and save for later.
Here is a screen shot of the form used to gather the property data for my class
Here's the class code:
Public Class EnvelopeSystem
#Region "Identification"
Private eUsername As String = ""
Public Property Username() As String
[CODE]...
I am looking for advice on how to get this to xml the most efficient way possible. Also if there are any blatant errors or easier ways to code what I already have I am still very new at this and would be glad to see easier more efficient ways of coding.
View 14 Replies
Dec 15, 2011
I am using vb.net and sql server 2005 as backend. I have a search form in which a field called billno is searched and all details are displayed in datagridview but the problem is I have to restart the project every now and then. Whenever any entry is done in database the immediate form opens is the search form so it must display the data which was inserted immediately without restarting the project.
For inserting data I am using the following code:
if TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox7.Text = "" Or TextBox11.Text = "" Or TextBox12.Text = "" Or TextBox13.Text = "" Or DateTimePicker1.Text = "" Then ErrorProvider1.SetError(TextBox1, "Enter Proper Details")
ErrorProvider2.SetError(TextBox2, "Enter Proper Details")
[Code] .....
Second problem is have a print form in a particular format but the data retrieval in textboxes is not happening actally i dont know what to do. What would be the code for data retrieval from database into their respective textboxes?
View 4 Replies
Dec 30, 2008
I have an assignment where I have to design an information retrevial system for estate agents. I have to be able to view the houses for sale, and delete them when there sold. I am new to vb script: Opens the Policy Details file and reads in the
'== records into the arrays (parameters) which are
'== passed back to the calling routine for
'== processing.
'== N.B. Use Sub SavePolicyDetails(...) to write
'==the data back to the file.
[Code] .....
View 2 Replies
Feb 8, 2011
Iv just started using a winsock control in VS 2010.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
sckListen.Listen()
sckConnect.Connect(sckListen.LocalIP, sckListen.LocalPort)
[code]....
On data retrieval, it comes out as number instead of text. Im guessing ASCII?Why is it doing this? Do I need to convert each ASCII number into a character?
View 5 Replies
Dec 16, 2011
I'm opening this discussion up primarily because I felt that it was inappropriate that Samir Ibrahim and I had hijacked another thread by turning it into a collaborative development thread. This thread will also hopefully serve as a searchable reference for those few who actually make an attempt to search the forum for information before posting a question. For reference the original thread I mentioned is [URL]
This thread is meant to be a repository for our continued collaboration on trying to find a way to update the attachment field using the OLEDB class. Samir believes that he is close to cracking the secret code.:)
Attachment retrieval and updating is a fairly trivial task using the Microsoft Access Database Engine. It is also fairly trival to retrieve the attached files using OLEDb as well. The difficulty comes when trying to add or delete an attachment with OLEDB.
The attachment field is actually a record set where each record consists of six fields. One of these fields is the data field that contains the binary file data. According to the documentation, Access will compress certain file. It appears that compression/decompression is handled behind the scenes so to say and what you are present with is sequence of bytes. The data field consists of sequence of header bytes followed by the actual data. The first four bytes define an offset to the start of the data. One thing that we are trying to determine is the meaning of other bytes in the header.
I have uploaded a sample project at: [URL]
This project is by no means a finished product. It is hard code to retrieve the first record from the included Access database.
View 13 Replies
Jan 20, 2010
Rather than use an Entry name of an existing VPN connection, is it possible to connect to a remote network by creating a temporary connection on the fly by using the remote IP/Host name, username and password?
View 6 Replies
Aug 5, 2010
I want to do a small application that made the broadcast of images from a PC. The idea is to make an application of remote management but without the management part, only with the viewing of images. Anyone know any code already done or any API that helps in the project?
View 8 Replies
Feb 25, 2012
i am using VB. net 2008. I am having a hard time using this code: ("L:SWPPPSWPPPBookMerge.doc") what is the shortest method that the system will search for the document without placing the document address.
View 1 Replies
Sep 22, 2011
We are opening a Word document from our Visual Basic 2010 application using the Word object. When we run our application under Windows Server 2008 the document name is truncated in the main window title for the document. This is not the case when we run our application under Windows XP. Is there a way to prevent this truncation under Windows Server 2008?Mary Leathem
View 3 Replies
Feb 6, 2010
Where can I find information on how to use XPS Document Writer to create a Word or Adobe document?I can print my VB2008 print document to a file, but how do i convert this file to Word?
View 1 Replies
Oct 6, 2011
Im trying to create a software which can post into yahoogroups.I've done trying to log in yahoomail but my problem is when I am going to post in yahoogroups, I am turning back in to yahoo log in page.
Here's my code so far:
Quote:
Imports System.IO
Imports System.Net
Imports System.Text
[code]....
View 1 Replies
May 1, 2011
Im trying to get a list of all the text files present (there file paths) in a certain folder (lets say C:\Users\podypodpod\Desktop\textfiles) and then add them to the list box (lb_Entrys)
ive manage to find this code to get all text files from the desktop , but i cant manage to edit it so i can give an actual filepath for it to search
CODE:
View 2 Replies
Jun 3, 2011
I just begin learn VB .net. I met a problem which axwebbrowser.document can not cast to mshtml.document. My webbrowser is loaded a PDF screen from some web site. My purpose is to get the content from PDF page.
View 1 Replies
Jun 7, 2010
how to write the document properties in an Excel document? (ie. author, title, comments, etc.)
View 3 Replies
Dec 27, 2009
I'm trying to develop a windows application where i can get connected to remote server and look for process state going in remote server.We have many remote servers where automatic installation of software going on. We have an xml file(installstatus.xml) where it tells us at what stage the installation is (Example : Inprogress , Completed, Failed.)
So our aim is to develop a windows application where i can get connected to that servers and look for their installation status(may be we can use installstatus.xml to look for installation status). Every time i connect to a server, the server information should get stored in XML file(i want to create a xml file where all the servers list i connect to should get stored)
The UI at left side should will have list of servers i can connect to. When i get connected to server, at right side of UI, i want to display the status of installation (In progress, failed , completed).
View 1 Replies