I have a requirement where I have to code Powerpoint to access data from sql server and display in tabular and graphical manner. Instead of doing it in VBA (as i'm weak in VBA) I would prefer to go with WPF Window application in C#.
My question is, Is that possible to create Powerpoint presentation like slide show in WPF where on every slide there will be graph and datagrid and marquee text show updated data from database. Any suggestion or links highly appreciated.
So far What I've found:
1) If I make my windowstyle to none and state to maximized. it will appear in full screen window.
this.WindowStyle = WindowStyle.None;
this.WindowState = System.Windows.WindowState.Maximized;
2) and on Each window by using dockpanel I can arrange controls like datagrid on leftside and graph on right side and in bottom marquee text.
3) Using timer switching between each windows.
with these I might be able to achieve what I'm looking for but is there any better solution for this?
I found a really useful library that you can use for this purpose. It features many different transitions, just like PowerPoint and is really easy to use. It is called 'Transitionals' and you can download it from the CodePlex website:
Transitionals
UPDATE >>>
This Transitionals library is now on version 1.2, but you can download the help file for version 1.0 by clicking on the 'TransitionalsHelp_1_0.zip' link on this page on CodePlex.
Related
I'm using Leadtools SDK to build an C# WPF application that opens and shows PDF files.
At the mommet I only have two requirements:
Continuous scroll (like in Adobe Reader)
Zoom in/out
I'm having a hard time trying to figure out which is the right control for this. These are the main controls that Leadtools gives me:
ImageViewer
ImageList
RasterImageViewer
Since I want to scroll all PDF pages I'm using ImageList control. This control is able to show multiple pages but it doesn't have any properties like ScaleFactor to control the zoom.
ImageViewer and RasterImageViewer both have ScaleFactor but they lack the ability to show multiple pages, they only show one at a time.
Which control is the right one for my scenario? And how to approch it?
We have posted a simple WPF demo that displays continuous multiple pages using the Leadtools.Controls.RasterImageViewer control.
This control is the same one used in the AnnotationsLayersDemo shipped with version 19 of LEADTOOLS and it is derived from the ImageViewer control. Both controls are implemented in the Leadtools.Controls.Wpf assembly.
The simple demo can be found here: http://support.leadtools.com/SupportPortal/CS/forums/44682/ShowPost.aspx#44682
I'm working on a WPF project, for desktop screen capture, and it opens .pptx files. But when I'm about to click on PP13 to open one presentation it automatically extends display to show two views: pc display in presentation helper mode and the other one with the full slides.
I know I can disable it through File>Options>Advanced>Display but I'd like to do it with C#. I can't find any way so I hope someone knows if it can be done and has some sort of solution. Is it possible?
Thanks in advance!
I was creating a Windows Forms based application in C#. I want to display a custom main UI. I have a source Bitmap image for the same. But I cannot find the solution so as to how to do this in C#.
Here is my main window for the UI in which I would display the buttons and the display.
Can anyone tell me how to do this??
Thanks.
You can't do that using WinForms, you must use WPF.
Some links (there are many helpful resources, check on google for more):
WPFtutorial
Designing with Windows Presentation Foundation
Advantage of WPF app vs Winform for business apps
Does anyone know of a C# WinForm or WPFcomponent that I can use as a "Word-Blank-page" control?
I need that the my user at runtime see a whit-blank-page that can manipulate by having basic text editing (bold, fonts, color), basic tables and images placed everywhere on the "canvas" (the white page).
The component should give me an API, so I can react on user actions on the component, like when right clicking on table or an image (I will display different forms depending on the object clicked).
I look for some extension of the RichTextEdit control from different vendors, but any of those can give me the functionality I need.
Any suggestion is welcome.
Flow documents is a good way to go. They are thoroughly documented by Microsoft.
They provide all the functionality you mentioned and then some. Code Project has some good examples on how to use flow documents. You can check this beginners guide for starters.
I want to implement sjf (Scheduling) with c# and I need timeline for show how it workes. For example in this timeslice that process do its job. I want to show it graphically.
How I can do that?
Something like this :
i can implement, i just dont know how to show it graphically like that.it is windows form app in c#
To graphically display a schedule as you describe, using WinForms / C#, consider using a Gannt chart control.
Don't try building the control yourself, there are good off-the-shelf controls that are robust, low priced, well supported and have loads of sample code.
Telerik for example: http://www.telerik.com/products/winforms/chart.aspx
I mentioned Telerik as I've used their WinForms, WPF and ASP.Net controls before, they have plenty of different snippets of sample code, so it's easy to test out and they are well maintained with regular updates. Get a trial copy, see how it works for you and then go from there.
There are many others sources of Gannt controls, see previous StackOverflow topic: Gantt Chart Controls on Windows Forms