|
I am using a webbrowser control to load and show supported documents within it. for file types that it cannot embed, i want to automatically launch the application that is associated with that file and open it there. How can I solve the following problems
1. When I enter the following code line
myWebBrowser.Navigate("C:\myFile.xls")
How do i avoid the download dialog from popping up?
2. How can i tell if my webbrowser will not be able to embed this application but will be able to embed that one?
3. In which event of the WebBrowser control do i need to do this?
Thanks for your assistance.
|
|
|
|
|
I don't think you can. It is for security reasons since the user should be aware of the nature and type of files coming into his system.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thanks for your reply.
Ok, or maybe how do I cancel the download completely wen it is about to happen and initiate another process. Note I jus wanna cancel the download if it is going to make that download diolog box pop up otherwise if the browser can embed the document, i want it to continue.
|
|
|
|
|
I got a Project to make an Windows Explorer style Form to brows files and folders. Now i m just checking out the result of the code as below,
=============== My CODE ============================
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
'On Error Resume Next
Try
searchResults = My.Computer.FileSystem.GetFiles(directory, FileIO.SearchOption.SearchAllSubDirectories, wildCards)
'UnauthorizedAccessException
Catch ex As UnauthorizedAccessException
'MessageBox.Show(ex.Message)
End Try
End Sub
================ end here ====================
this code throws the following exceptions of "UnauthorizedAccessException"
But i want to search through all the directories and subdirectories. If there some files or subdirectories where there is no user access allowed i want to continue searching bypassing that directory or subdirectory.
So that i could make a complete search of files and folders and make that Explorer Style interface.
Thanks
|
|
|
|
|
the only thing i could find for this is a impersonation of the system user....
but it doesnt sound like it should be done that way (and on top of that, i havent figured it out how to use that)
|
|
|
|
|
Hi
I’m using vb.net to create an xml file based on an xsd file.
I can create the file, except for the header
The file I’m trying to create needs to begin:
- <datafeed_response xmlns="http://www.moneycardltd.com/v2.5/datafeed_response" version="2.5">
- <cards>
Whereas using the xsd file to create this results in:
<cards>
<datafeedrequest xmlns="http://www.moneycardltd.com/v2.5/datafeed_request">
<datafeed_request version="2.5">
<cards>
The code I’m using to generate this is:
With myXmlDataDocument
'datafeed_request
xmlDataRow = .DataSet.Tables("datafeed_request").Rows.Add()
xmlDataRow.Item("version") = "2.5"
'cards
xmlDataTable1 = .DataSet.Tables("cards")
xmlDataTable1.Rows.Add()
Any help, is much appreciated.
|
|
|
|
|
What I'm producing:
?xml version="1.0" standalone="yes"?
DatafeedRequest xmlns="http://www.moneycardltd.com/v2.5/datafeed_request"
datafeed_request version="2.5"
What I'm trying to produce:
?xml version="1.0" encoding="UTF-8"?
datafeed_response xmlns="http://www.moneycardltd.com/v2.5/datafeed_response" version="2.5"
Its the Version 2.5 that 'm having the issue with.
Cheers
|
|
|
|
|
hi all
i have a listbox which is truned invisible at design time now i want to make it visible in runtime it is will turned visible also but it hides behind the datagrid i want to show it on the datagrid but it always hides behind it, so how would in bring in front to make visible.
Yogesh Agarwal
|
|
|
|
|
yourListbox.bringtofront
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
|
|
Why did you delete your message?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I want to export a XML file to a specified path (eg: C:\...). containing 1 column (column name 'ID')and records that contain these columns are needed to sort.
Please share the source code if anyone has idea.
flowerppk
|
|
|
|
|
There's a bunch of different ways of doing this.
You can put your data into a DataSet or DataTable object and use it's WriteXml methods.
You can write it out using the XmlDocument classes
or a straight text file, ...
But, noone is just going to give you the code to do this. Though, we'll help you write your own code.
|
|
|
|
|
How can i protect a xml file with password in a VB.Net project?
|
|
|
|
|
XML file is plain text file. You might not have much of password protection there. You can actually encrypt the contents using a key and then place it as a binary content in CDATA.
For a similar implementation, check out http://www.codeproject.com/KB/applications/todolist2.aspx[^] [You may need to use Encrypt TaskList to see a similar implementation.]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Dear Guys,
I need the definition of reference, instance and object in OOPS.
Regards
Azeem
|
|
|
|
|
hi
In my own Words i say an instance its a representative of Something. if i have a Class name "Customer" and that Customer has Function and i want to use those Functions, i need to get the Representative of that Class so that it ca provide me with the Function, like this
Public Class Customer<br />
<br />
Public Function GetName()as string<br />
dim strName as string = "Ahamed Azeem"<br />
<br />
return strName<br />
<br />
End Function<br />
<br />
<br />
End Class
Now if i want to use the Function "GetName", i will have to Create an Instance of a Class Customer. like this
<br />
dim InstanceCustomer as Customer<br />
InstanceCustomer.GetName()<br />
hope i was Clear
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thank you for ur reply
But I also need explanation of object and reference.
Is it all same? No means what is the difference
Thanks in advance
Regards
Azeem
|
|
|
|
|
hi
To my knowledge e.g you reference(Access) a function in a certain Class using an Object.
Reference is just a word used in this terms
Hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hi guys
i am working with a 3 tier application in vb.net,
i want to use progress bar while i am retrieving data from data base,
i want to display actual prgress regarding retrieving data from data base through progress bar but
i am unable to find the right direction,,
any helping code, link ,
thanks in advance
hello
|
|
|
|
|
|
Since a database action doesn't report progress and can't know ahead of time how many records are going to be returned, you're going to find this quite difficult to do.
You can do this once your code has retrieved the data from the database and your parsing through it for some reason, such as creating an object collection from the returned results.
|
|
|
|
|
Can I format a dateTime picker for month and year only?
How do I do this?
|
|
|
|
|
No - you will need to write your own control.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|