I am afraid I can not use it. Becuase I don't have to use only the URL. Following is the flow of my program. 1) My application open a web page in WebBrowser control after sending some URL , say www.xx.com (using Navigate method) 2) The opened web page(www.xx.com) has fields like Name, Address, SSN. My application fills this information in the browser window programatically and clicks on one link in the same web page (this is also programatically) 3) on clicking the link, the filled infomration gets submitted and at the server end(of www.xx.com) it processes entered name, address and SSN and generates one PDF file. This PDF file gets opened in my browser(webbrowser) window. 4) This opened PDF, I want to save on the hard disk programatically without having to click manually on the save icon of the embedded acrobat reader. I am unable to achieve step 4.
Sunil Shindekar
Posts
-
Saving PDF on local hard disk which is read by browser control -
Saving PDF on local hard disk which is read by browser controlHi, I am writing program VB.Net (using Visual studio 2005). In this program, I am using browser control to send request on the internet. In responce to the request, one PDF file gets opened in the browser automatically. I want to save this PDF file on the hard disk. To do this, I think my program should be able to read the downloaded file in response to my request. Is there any way by which I can do this. Thanks in advance. Regards, Sunil
-
auto entering the text in browserI have one web based application. Assume it's URL is www.xx.com. It accepts some information like Name, Address, SSN. I am also using one third party web based application, say www.yy.com. The data entered in www.xx.com gets stored in my application. After saving it, I have to enter the same data on www.yy.com to get the more information about the person. I don't want to enter the same infomration in my web application i.e. www.xx.com and again enter it in www.yy.com. Is it possible that whatever data is entered in www.xx.com, will automatically get entered in the text boxes of www.yy.com using javascript or any other technique? Thanks in advance.
-
Convert char* to CString_base = m_userName.GetBuffer or _base = new char[] strcpy(_base, m_userName.getbuffer)
-
Files relatedTry using GetBuffer() function for the CString objects in the fprintf statement?
-
Files relatedWhat is the data type of m_Username and m_Password?
-
fclose(f_ptr2) - "Access Violation or memery can not be read"GetBuffer returns the pointer to the memory which is enough to store the current string assigned to the CString object. You are using the same pointer to read the data from the file. If the data is too large to store in the currently allocated memory for the pointer by the CString, then there will be memory overrun. It can cause overwriting the values of other memory locations which may or may not include file pointer also or FILE structure also.
-
fclose(f_ptr2) - "Access Violation or memery can not be read"I think this statement might have the problem. fscanf( f_ptr2,"%s %s %s\n",buffer,buffer,fname[ii].GetBuffer(MAX_PATH)); Here one of the pointer is taken using GetBuffer of CString. I think it is not the correct way of geting the pointer of CString memory and copying value in it like character array. Taking the value in character array and then assigning it to CString might be better option. Something like this. char sTemp[500]; fscanf( f_ptr2,"%s %s %s\n",buffer,buffer, sTemp); fname[ii] = sTemp;
-
Memory allocation related queryYes. I have to explore distributing the workload on multiple machines using web farming if the 2 GB limitation could not be overcome. However I am trying to avoid it as it will add up the cost.
-
Memory allocation related queryI think only Vista (Amongst microsoft OS) is 64 bit OS. And I heard that it has problems. So I am try to avoid it. So much memory is required becuase it is multiuser application and each user can fetch upto big set of data in memory for processing. So even if one user takes 20 MB, then 100 simultaneous users can occupy 2 GB.
-
Memory allocation related queryIf it can be changed, then it is great. Can you please let me know when you remember it? Is it achieved by changing the compiler option? Or changes required are in registry etc?
-
Memory allocation related queryBut I even tried increasing the PF size to 6.5 GB from 4 GB. Still my program was giving 'memory full' error after using approximately 2.8 GB of PF.
-
Memory allocation related queryI have written one small program in Visual Studio 6.0 which just goes on allocating the memory using 'new' operator. My thinking was that it will give 'memory full' error once all the physical memory and page file memory is full. So I executed the program nad start observing the Task Manager. As the program is executing, the task manager was showing reduced available size of the physical memory. Once the physical memory is full, it start showing higher PF Usage. When my program game me the 'Memory full' error, the PF usage was just 2.8 GB. My PF size is 4 GB. So still 1.2 GB was unused. Why should the program give 'Memory full' error when there is still 1.2 GB available. My physical memory (RAM) is 512 MB. Any idea why is it so? Following is the program. int main(int argc, char* argv[]) { double dMemAllocated=0; char *c[64003]; char *s[64003]; int i=0; while (1) { try { c[i] = new char[40*1024]; s[i] = new char[40*1024]; if(i > 64000) break; if((c[i] == NULL) || (s[i] == NULL)) { cout << "Memory full. Memory Allocated = " << dMemAllocated; getchar(); } cout << i++ << "\n"; } catch(...) { cout << "Memory Allocated = " << dMemAllocated; getchar(); } dMemAllocated += 80*1024; } cout << "Memory Allocated = " << dMemAllocated; getchar(); return 0; }
-
Modifying inbound HTMLHi, I wrote the program as mentioned above. However I used the event DocumentComplete instead of DownloadComplete. It is working fine if new URL is given in the browser window. But if Refresh button of browser is clicked, then DocumentComplete event is not getting fired. However DownloadComplete event is getting fired. But DownloadComplete event does not give me the WebBrowser object for which the event is fired as it is available in the DocumentComplete event. Is there any way in this function to get the instance of WebBrowser from which this event is fired? Thanks in advance. Regards, Sunil
-
IE loading eventHi, Thanks for your solution. But won't it slow down the system running this code every 100 milliseconds? Regards, Sunil
-
IE loading eventHi, I want the details of IE window as soon as IE window is opened either by double clicking from Desktop icon or from Start menu. So is there any event which gets fired when the IE window is opened which I can capture in my program. My program will be a Windows service written in C#. Please let me know how it can be done. Thanks in advance. Sunil
-
Modifying inbound HTMLHi Marcel, Thank you for your reply and sample code. I have one more query. I want to create a toolbar for the Internet Explorer which will have controls like drop down and push buttons. I need to write the program in C#. Can you give me some direction in this regard? Thanks in advance. Sunil
-
Modifying inbound HTMLHi, I have some more doubts. As I am novice to all these things, please excuse me if I am talking some non sense. As per my understanding, above solution assumes that the IE control is embedded in the application. In my case, IE will be invoked from Desktop and I want to capture any HTML which is loaded in that the browser loaded from Desktop. The HTML also might not be mine. It can be loaded by giving any URL like www.google.com or www.msn.com etc. So do I have to get the instance of the Internet Explorer which is invoked from Desktop? If yes, how to get the instance of it? Thanks, Sunil
-
Modifying inbound HTMLHi, I want to write a program which will modify the inbound HTML in the IE 6.0. It will capture the inbound HTML before it gets displayed, make some modifications in it and display it in the IE. Can anybody tell me how to achieve this? The typical flow will be - User will enter the URL in the Internet explorer Address Bar. The incoming HTML will be read by my program before it gets displayed. My program will modify some strings - say phone numbers in it and display the modified HTML. Technology is not a restriction. I am ready to use VC++ or .NET. Do I have to use shell Extension? If yes, which interface/event will be helpful? Thanks in advance. Regards, Sunil