When I embed Microsoft's ActiveX control "WebBrowser" into my application and add a line:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
to force it using "Edge" then (and only then!) does the "Find" command in the context menu do not work: I can select it, the dialog box pops up but when I enter a single character that does appear somewhere on the page it immediately shows "not found".
Surely somebody must have run into this but I cannot find anything on the Internet. Anybody?!
This is a link to a sample Visual Studio project that demonstrates the problem:
https://drive.google.com/a/aplteam.com/file/d/0B3VhiTAx8vLYSkdDdlF0bUtNbFE/view?usp=sharing
Just for the record: I found that it does not work when I assign the HTML in memory via the "document" object. If I write the HTML to a temp file and navigate to that temp file then it does work...
Related
This happens in IE11 - when I open the file selection menu (Ctrl+O), then files inside the "Dynamic scripts" can be selected/opened, but are not searchable - for example I can click on _add-to-unscopables.js to open it but if I type its name, it would tell me no results were found.
Any idea why this is happening?
It looks like this is by design, we could only filter the actual script file under our web site.
I recently discovered the blissful convenience of being able to use the File, Save command from within the VBA Editor window to save the currently attached template without having to actually be in the template or close out of Word.
I thought it would be nice to have this command available on a Ribbon Tab or the QAT or even a keyboard shortcut, so I first added the Save Template command to a Ribbon Tab. But when I clicked on the tab, nothing happened.
I thought perhaps I needed to tweak things a bit with a macro, so I recorded a macro and clicked on the command, to see what the VBA statement would look like.
It looks simple and straightforward enough, very similar to a bazillion other "ActiveDocument" macros I have stored that run without any issues:
ActiveDocument.AttachedTemplate.Document.Save
But when I run the macro, I get the standard "Runtime error" message, with no hint as to what is wrong.
I cannot find any documentation regarding this command in any of my source material or anywhere on Google, nor can I find any discussions about it.
Any ideas what's missing here? Thanks in advance!
As I discovered, and Cindy Meister confirmed, the following works:
ActiveDocument.AttachedTemplate.Save
It will work even if the template is closed. The version that you got from the Macro Recorder, ActiveDocument.AttachedTemplate.Document.Save works only if the template is open. The version above works whether it's open or not. I don't program much in Word, but it looks like a template's Document object/property is instantiated when the template is opened and otherwise is nothing.
I'm trying to work out how to get sharepoint 2010 to display the quicklaunch on a web part page, the default.master trick I used in 2007 doesn't appear to work any more.
In my 2007 install, I simply edited the default.master and moved the quicklaunch code outside of the PlaceHolderLeftNavBar element but this doesn't have any effect in SP2010.
Thanks
A simple way to eneble Quick Launch Menu on WebPartPages is remove tags UIVersionedContentUIVersionedContent and PlaceHolderLeftNavBar using SharePoint Designer 2010.
See this article: http://denmartins.wordpress.com/2011/05/07/exibir-menu-quicklaunch-em-webpartpages/
If you really want to place another copy of the quicklaunch on a web part here is the steps
Using Sharepoint Designer 2010 go to your site and navigate to Master Pages -> v4.master
Click edit file copy everything in the <div class="ms-quickLaunch"> that should copy everything you need for the quicklaunch to run. For best result use the code view and hover over the quicklaunch and you should see the div, click on it and copy (Ctrl + C)
Now you can paste that on another web part page and it should work, I tried it by creating a new test page and it worked
You need to make changes in v4.master (in masterpage library), not in default.master.
For details on SharePoint 2010 master pages, please, follow this link:
http://sharepoint-sandbox.com/index.php?/Tips-and-Tricks/Customization/tip-80-sharepoint-2010-new-masterpages.html
Your masterpage trick on my SharePoint Foundation 2010 environment works fine.
Anyway, I don't think, that moving any standard code from placeholder is a good idea. If you want change position of quicklaunch menu, you should move the leftnavbar placeholder itself, including all the contents.
Placeholders are generally used to allow some pages, for example application pages, replace placeholder contents. So, if you hide the placeholder, and move it's contents out, these changes will be lost, and the standard menu will be shown. (and if you do not hide the placeholder, you can get two menus on one page :) )
Hope it helps!
I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.
So I wanted to specify the ms-help:// path of the help page as a command line argument to the viewer, CLVIEW.EXE.
C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE
Does anybody know the command line syntax for this?
CLVIEW.EXE doesn't support command line parameters to launch to a certain page. It's usually used to launch your own custom help file within the hosted Office application.
With Word 2007 there are some options available. They depend, let me repeat, they depend on whether your help is in online or offline mode.
If your intent is simply to get
people to a specific Word help page
and they have internet access, you can grab the URL from the help file
in online mode. To do this,
just right-click on the page you
want the link, for example the
Make the text bold page, to and click Properties. Then copy the URL
(Address) which is:
http://office.microsoft.com/client/helppreview.aspx?AssetID=HA100215341033&ns=WINWORD&lcid=1033. This will work just fine in FF (if you were in Offline mode, this
same link would have been:
ms-help://MS.WINWORD.12.1033/WINWORD/content/HA10021534.htm.)
If you are first sending them to
Word, you can run an macro that
brings up this topic. You grab the
"Topic ID" from right-clicking on
the page Make the text bold page
(which, in this case is
"HA10021534") and put that ID as the
first parameter, like the below.
NOTE: This should work in both
online and offline mode.
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HA10021534", ""
End Sub
For developer documentation with the
solution for #2, if you are in
offline mode, you need to set the
scope to "DEV" (which will also work
if you are in online mode). So for
the subject Bibliography Object,
the Topic ID is: HV10096617. If you
are in online mode, you don't need
the "DEV" scope. Code:
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HV10096617", "DEV"
End Sub
You can view these documentation pages in Internet Explorer.
Open up your Word docs to the page you want.
Right click, Properties and copy the ms-help:// URL.
Paste this URL in IE, it should open up fine.
Use the command line syntax for IE to hyperlink to it.
Hope that helps, although clicking links in IE may not work properly.
Maybe CLVIEW.EXE has command line syntax that can do this directly.
I'm writing a console application in Visual Basic 2008 Express.
I added several text files to my project as resources. Specifically...
I went to my project's "Properties" page and selected the "Resources" tab.
I clicked the "Add Resource" dropdown and chose "Add New Text File".
I entered some simple text and saved the file as "Welcome.txt".
I built the entire solution.
In my code, I use console.writeline(My.Resources.Welcome) to display the text.
If I run my code through the IDE, it works fine.
If I run the EXE that's in the /bin/release folder, the app crashes.
My system logs show the error as "System.IO.FileLoadException".
I have tried setting the properties on the embedded text file to "Embedded Resource", but the result is the same.
Has anyone encountered this issue? Thank you in advance.
Copy Welcome.txt to your bin\release folder.
OR
To make Welcome.txt an embedded resource, right-click either the text file or the bitmap, and then select Properties.
In the Properties dialog box, locate the Build Action property. By default, this property is set to Content. Click the property and change the Build Action property to Embedded Resource.