C# - Add A New Trusted Location For Word 2010 Using .Net?
Jun 12, 2011Is it possible to add a new Trusted Location for word 2010 using VB.Net?
I want to do the same steps in the below link via code, is that possible ?[URL]..
Is it possible to add a new Trusted Location for word 2010 using VB.Net?
I want to do the same steps in the below link via code, is that possible ?[URL]..
I have a VB project using VS 2008 Pro that I have been working on my Win XP SP3 PC for a while now. I am now moving to a different PC with Win 7, 32 bits. I installed VS2008 and VS2010 (also Pro) on the new PC. The source is stored on a server on our network. When I tried to open the project with VS2008 on the new Win 7 I got the following message:The project location is not trusted:
\DevServerProjectsSysMon Running the application may result in security exceptions when it attempts to perform actions that require full trust.I then click Ok and another dialog comes up mentioning:This project includes a password-encrypted key used for signing. Enter the password for the key file to import the key file into the local cryto-store databse for use.The dialog lists a pfx file. Why is it requiring this?
I am writting an appplication that will allow a user to open word and then save that file in a specific location, so it becomes 'attached' to what they were working on.
I thought the best way to do this was to make a change in the registry then open word, so far i have[code]...
We have an interactive windows based application written in VB .Net 2010. It uses Word Object to display documents in MS Word. We have a form with a button. When the button is clicked we open the Word document and maximize the Word Windowstate. When we have the Visual Studio Tool running, the Word Document is maximized and has focus, even if we are running the exe from the bin folder outside of the tool. However, if Visual Studio is not running and we run the exe, focus remains on the original form window and the document stays in the task bar.
View 5 RepliesI have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed, and it is 64-bit Windows 7 Platform. The program opens a .doc and .rtf format document, and attempts to save it in htm format. I am using following commands:
Dim sFilePath as String = "C:ABCfile.doc"
Dim oApp As New Microsoft.Office.Interop.Word.Application
Dim oDoc As New Microsoft.Office.Interop.Word.Document
[code]....
All goes fine with development and running on development PC, but when I publish it for offline installation, and deploy it on Client PC having Windows XP with Office 2007, it gives error on oDoc.SaveAs2 line, and program crashes.
I want to know how to put (-) AFTER the word LOVE AND before Any word in the textbox by a click of Button. ( if my textbox1.text has: LOVEMOM then when i click the "Button" it shows "LOVE-MOM" if LOVEDAD then = "LOVE-DAD" and soo on.
View 5 Repliesis there a way to get the raw data of a word file document object?
word = new Word.Application();doc = new Word.Document();
now, I open the word file, do some replace. save the file. I could open the file as raw binary file. but I'm thinking maybe there is a property that can get the raw the data? which property?
I have a VB.NET application that I wish to store on a shared server. It is a GUI application that also calls a few external .dll's. I'm running into an error message that says "That Assembly Does Not Allow Partially Trusted Callers". I've seen several posts that mention I should add the following line to my AssemblyInfo.vb file:
<Assembly: AllowPartiallyTrustedCallers()>
This still doesn't seem to solve the problem. Anyone know what to do? I'm hoping to compile and store the .exe on the server for other users to access.
vb.net applications that runs at the client-side work in unsecured environment, these applications connects to a mysql database server so... it contains the username and the password of the mysql database in the connection-string in the application itself.isn't there any way to digitally sign my applications so the database server only accepts the requests from the trusted applications?I want to this to prevent the hackers from hijacking my database
View 1 RepliesOr in another way of understanding how to bypass the firewall of Windows in VB.NET?
View 1 Repliesi am devloping app in vb.net and ms sql express compact 2005 .evrything works well. but when i used a third party dll file report viewer and one from skineengine system give me the error"assembly does not allow partialy trusted callers".
at first when i used report viewer it works,but letter it throw me error,same for skineengine. so that is the case of disallowing third party custom dll files.
i even set <Assembly: AllowPartiallyTrustedCallers()> in assemmbly.info
I have some Crystal Reports connecting to a Sql Server db that I would like to detect whether the connection is trusted or whether I need to supply the log on info (reports are not supplied by me so I can't control the connect method). If I just blindly supply login credentials, it won't connect if it is a trusted connection.The following does not work:
oRpt = oCR.OpenReport("C:MyReport.rpt")
if oRpt.Database.Tables(1).ConnectionProperties.Item("Integrated Security") = True then
'trusted connection[code]....
It gives the following error:Operator '=' is not defined for type 'IConnectionProperty' and type 'Boolean'.
I cannot find how create a construct in vb.net for IConnectionProperty. I can't find any documents from Crystal that explain it.I am using Crystal Reports XI - Developer
I have one project created with VB 6.0. Step to reproduced this issue,
1. Start Internet explorer and add the site "[url]" to trusted site. now set protected mode check box to Off for the trusted site zone.
2. Open the Visual Basic 6.0 and created standard Exe project.
3. From Tools -> references add "Microsoft Internet Controls".
4. Copy and Paste below code. [Code]
Out of 70 users of my application 2 are getting the following message when they to run the application... That assembly does not allow partially trusted callers. The reason for the error is that by default .net applications run from a network location have limited permissions. You need to use caspol.exe to add the network folder where your application is being run from to the Trusted Zone. If you do a search on these forums you will find plenty examples of how to do this. It is fairly simple. It will have to be done on every machine that will be running the application and a simple cmd file can be made to do this. The only difference is that I've asked our service desk to install the application to the local C drive which I believe they did.
View 10 RepliesI'm having a little trouble trying to read a word document in vb. how to get the text out of the word document would be great.
View 4 RepliesSome example or idea about how to get the location of some IP address.
Example: 187.72.136.139 = Brazil
How would I make a reference to a DLL that's located in a subdirectory, like in?
View 2 RepliesSo I'm working on an app that needs to create files on the end user's computer to store info in (mainly text files and HTML files), and I'm trying to figure out the best location to write these files to. I've been reading various articles @ this online all afternoon, and the advice I've read so far seems to be "all over the place".From what I understand, if the end user is not logged into Windows as "admin", then there are a limited number of locations where files can be written to their computer, without them having to deal with UAC popups, etc.I would like my end-user's to have to jump through as few hoops as possible (none, preferably ), so should I only write my files to these specific locations? when I write the files to the end-user's computer, I have 2 different types of info that needs to be stored...
Info "A" is temporary data that only needs to be stored/accessed while the end user has my program open (and this data can be safely deleted each time they close my program).Info "B" needs to be stored somewhere where it never gets deleted, so that it can be accessed by my program for as long as the end-user has my program installed on their computer.So would it be best to store info "A" in the Temp folder, and info "B" in the App Data folder?And for any files that I store in the "temp" folder, do these files get automatically deleted when the end-user turns off their computer, or do I have to programatically delete these files every time my program exits?
Using either one by itself works fine but if I use both then it behaves strange.It will Maximize just fine but when I click the Maximize button again to take it back to the original size it resizes the window to the original but then immediately resizes it back to the smaller size location. So I end up with a window whose upper left corner is where it belongs but the window size is the same as if it was maximized.
View 7 RepliesHow to move in a datagrid object. which of the column 1 and row 1 I want to move to the row 1 and column 3.
View 3 RepliesI have Visual Studio 2010 Ultimate.
When I click on "New Project", under the "Name" textbox, I get no "browse" button to save the project somewhere else other than the default Document and Settings folder. But, my friend see that "browse" button under the "Name" textbox.
How can I save the project somewhere else other than the default Document and Settings folder ?
In my Windows application I have 2 forms, Form1 & Form2 in Form1 there is a Button so now I want to place the form2 exactly bottom of the Button when I click.
View 3 RepliesI had my laptop stolen and had to download a trial version of microsoft word 2010. the file extension says it is WordApplication.odt. I am using Visual Basic 2010 and had the application converted from a visual basic 2008. The Imports Word = Microsoft.Office.Interop.Word .Net Reference file, but I thing the trial version of Microsoft Word has a different file extension.
View 10 RepliesIm trying to make a program that works a bit like the log in on a computer. But i cant make it load a different .config file depending on what username is used. I want it to load a config file from different directories that match the username. eg if the username was bob then it could be: C:MyProgramLoginBobapp.config I've been teaching myself and this has had me stuck for ages.
View 16 RepliesI know how to calculate a city's location on the world map by using its geographical coordinates as a pixel on the map but how in .net can I draw a link with a cuve? Once I have the curve does anyone know how to determine where the curve should be for the shortest route?
View 12 RepliesI wam trying to create a application that will take a screenshot when the timer ticks over.What I need to find out is how do i Make a type of 'crosshair' system for the window that the screenshot will be taken.ike I will have my main VB app and the end-user will drag the crosshair over lets say, Their iTunes libary and the ap will get the height, width of the iTunes and then take a screenshot JUST OF THE ITUNES program, not the whole dekstop.
View 23 RepliesIs it possible to check a location for a file and if a file exists then create a new file (+1) in the file name? For example if there is no test file in the C:Temp folder then create a test.txt file and if there is one there then create C:Temp est1.txt and if there is a C:Temp est1.txt file then create C:Temp est2.txt and so on?
I was thinking
If Not IO.File.Exists("C:Temp est.txt") Then
IO.File.WriteAllLines("C:Temp est.txt" + 1, vbCrLf)
End If
Im working on a way to use a Select statement to set the image of a picture box.
select case currentno
case 1
PictureBox2.Image = Image.FromFile(C:UsersValued CustomerDocumentsVisual Studio 2010ProjectsChiroReportChiroReportChiroReportPnt_GuideLAT CERVlatcerv52.jpg)
[code]....
The Select statement should work fine but the path to the file i want to open doesnt. Id love a way to reference the Pnt_GuideLat Cerv directory based on where my program gets installed on the Hard drive.
VS 2010 [RESOLVED] Proper location for Global Constant?
View 1 RepliesIn the past I have written VB6 and VB NET 2005 programs that are installed and on the user's computer. This had to be done because the salesmen in our company have has a set of local data on their laptops so that they could do work and not be connected to our network. I would then sync the files when they connected to the network. (This same program is used by the rest of the company as well, but everyone else uses network data.)We are now at the point where we are not using any local data. Our salesmen access our network data using an iPad, VPN, and a Citrix server, which works fine
View 2 Replies