Implementing Search bar to search topic in WPF HelpSystem - wpf

I have implemented a context sensitive WPF Help System using .chm , which shows specific htm files when F1 is pressed. Now I would like to add a search bar to it to search through all the topics in the .chm file. Is there any reference/suggestion how to do it?
Thanks in Advance

You know - there is a fulltext search tab possible for any CHM.
HH Workshop API documents how to move to the search tab and initiate a search. Unfortunately the initiating a search part has always been broken in HH. The only way around this would be to find the HH window and search pane controls. Then control those controls from your application using via low level Windows API calls.
I translated this for working with Visual Basic 6 a long time ago. So the search string is pushed to the CHM search tab and search is starting.
http://www.help-info.de/en/Help_Info_HTMLHelp/hh_api.htm#Search
Disclaimer: This isn't a product link - only code to help (open source).

Related

How to include a Windows Word document in a HWND?

I'm looking for including a Word document in a plain-C application. I tried several examples found on the WEB but they are mainly VBA or MFC oriented. Is someone has a link?
My application is made of windows (HWND or, if needed CWnd pointers). One of this window should inherit all the WORD document I want to edit (basically the commands SAVE can be outside). I can not get the correct way to show the WORD document inside my application.
Thanks for your help.
You could embed it using OLE. Take a look at this article for an example of how to do it.

How to open the index tree content of a .chm file in the wpf application using the webbrowser?

I am creating a helpbar for my application and having two things to get done :
To provide the online help from the website and display it in a window using webbrowser which i am done with.
now in the same browser i want to open the index tree of the .chm file .
so is it possible to open the index tree of the .chm file?
browser.Navigate(#"mk:#MSITStore:[my .chm file url]");
I am doing this to open a particular content , but i want the starting index tree which is displayed at the left panel of the default help viewer application provided by the microsoft.
Want to know whether it is possible else any suggestions how to approach it.
The CHM index isn't an HTML page — it's stored as binary data in the CHM file. So it can't be displayed in a WebBrowser.
I'd recommend using unpacked HTML help if you need to display the help in a WebBrowser inside the app.

WPF Best Resources to develop a Simple Kiosk application

I am in the process of learning WPF so please keep the answers as basic as possible. I am mediocre with VB.NET and an absolute beginner with WPF.
I am attempting to build a light Catering Kiosk Application using WPF for a Special Needs School. It will have 3/4 tabs at the top for the courses(Starter, Mains, Dessert) depending on the day of the week. Each Tab will change the Menu Options which is a horizontal picture list on the screen. On Selecting a Menu Option, it should populate a picture list on the right hand side of the screen acting as a summary of orders. On pressing the menu option, an audio should play in the background (Name of the item for visually impaired).
The menu is decided at the beginning of the day by people not very used to PC's so I am considering to build the app to read the days menu from a Directory where 3/4 folder depending on the number of courses for that day. Each Folder would contain Sub Folders with the name of the Menu Item and an Image and Audio File within it.
I am hoping that the Application on Load would check the Directory for how the it is arranged for the day and would populate the contents accordingly.
Some WPF snippets that have caught my eye are :
'itemsControl Class', 'Style Resource'
Thanks for all your responses in advance,
Ajmal
Personally, I'd just make it a VB app, Windows Forms Application and code the functionality you describe in your post. Use the TabControl for the (Starter, Mains, Dessert). Look at the PictureBox control to show an image on the right side etc. Side note, you working with the special needs kids is quite admirable!

wpf app: help files with search and index

We are adding help files to our WPF application in Visual Studio 2010. We have not been able to find so far a method that we have been able to use.
We have some HTML help files, currently they are just in a directory, not added to the WPF project.
We don't have index or search.
I have seen that maybe we can do something with cmh, but this seems quite old and outdated now.
Ideally we would like all this in WPF, but if its not possible we need another solution.
We would like to be able to hit F1, have our main help page displayed (we have this now, it opens in our browser) and additionally add Index and Search to our main help page.
Can anyone point us in the right direction please?
Maybe you should take a look at the Process.Start Method page on MSDN. In particular, the Process.Start Method (String) page has a code example showing how to open web pages from a WPF application.
To do this inside a WPF application, look at the WebBrowser Class page at MSDN. This also provides a code example of loading a web page into your application.
EDIT >>> After re-reading your post, I realise that I missed the bit about searching and indexing. Surely, you can just search through the web pages yourself? Just open each page and use something like
if (webPageContent.Contains(searchTerm)) return webPageContent;

Drag and Drop word document onto Silverlight 4 web part within a SharePoint 2010 web page

User should be able to drag and drop a word document onto a SharePoint 2010 web page and the content in the word document must be displayed on the page (including images, format etc.)
Any ideas on how to achieve this functionality?
You'll have to bake your own solution here. Luckily, you should be able to get started with TextGlow, which renders docx files in Silverlight. It has an intermediate level of formatting accounted for, but more can be programmed in. It's also SL2.0, so it will need to be updated and customized to meet your needs. See a demo at: http://www.textglow.com/
Then, wrap it in a SharePoint webpart and account for Drag/Drop, etc. There are a lot of good intro videos on Channel 9 about this and lots of other blogs elsewhere.

Resources