I need to get the screen byte data from an RDP client using the built in RDP/(Microsoft Terminal Services Control Type Library) libraries Microsoft provides for C#. It would be great if I didnt have to use a windows form as well to host it which 'seems' to be required as shown in most of these c# rdp examples.
My basic use case here is that I need to transfer the screen byte data coming through the network rdp client(Microsoft Terminal Services Control Type Library) to display in a different medium that is not a C# windows form.
Is anyone aware of a method to achieve this?
Related
I have developed a UWP[C#] application that uses the Windows 10 BLE API in order to receive data from a custom BLE device that my company has developed. Now, the requirement of the application is to send data to any active Word file, Excel sheet, Notepad or WordPad document on the local machine.
The data transfer from the UWP App to Excel/Word/Notepad/WordPad has to be automatically done as soon as the UWP app receives any data from the BLE device.
I read about Dynamic Data Exchange Server (DDE Server), however that technology seems very old and I am unable to find any documentation to for it to help me implement a DDE Server in a UWP app.
I am fairly new to Windows App Development and UWP App Development and would appreciate any help provided.
A UWP application cannot do this directly for security reasons. A UWP application can include a "full trust" component in its package though, and that component can communicate with Office via the standard OLE Automation interfaces.
You can read more about building UWP and full-trust components here, and you can learn about accessing Office via PIAs here.
I have a Windows form desktop application developed using c#. I want to make use of the live tile feature available in WinRT apps (especially for Windows 10). The data in the live tile is to be fetched using WMI queries (Win32_LogicalDisk).
How do I accomplish this? I don't want to rewrite the entire app. Live tiles should update on the background and on clicking the tile, my desktop app exe needs to be invoked. Is it possible to fetch WMI data and invoke exe from Windows Store apps?
I tried using Brokered Windows Runtime components as given in http://blogs.msdn.com/b/dmx/archive/2014/04/30/how-to-trigger-a-desktop-process-from-windows-store-apps-the-easy-way-using-the-brand-new-visual-studio-templates.aspx . But could not get it to work as I get a 'TypeLoadException'.
Thanks in advance.
Metro app can't run a desktop app. However, they can commumicate using wcf. So, you can create tiny windows service that will open wcf host. Then you create windows store app with your live tile(s). When windows service recieves a wcf call, it starts the desktop application.
There is also devexpress' solution that is capable of adding live tiles for desktop apps, however it is not free: https://www.devexpress.com/Products/NET/Controls/WinForms/Live-Tile-Manager/
WinRT blocks network loopback so wcf won't work. You can disable this for testing but I suspect that won't satisfy you. Read more here (and search for WinRT network loopback to find articles on this topic).
https://msdn.microsoft.com/en-us/library/windows/apps/Hh780593.aspx
I'm architecting one solution that needs to access one specific hardware (I already have the dll to access this hardware developed in C#).
My question is, can I develop one web application, and develop some plugin to web browser to access this dll in the client machine?
The idea is:
- Develop web system (client side and server side).
- Create plugin to Firefox or chrome, that will call the dll into client machine.
- Communicate my web system with dll into client machine through the plugin?
Someone can tell me if is that possible? If so, there's any starter point?
Appreciate for any help.
Give this a look, it uses Silverlight 4 to get system info from registry.
You could give Custom ActiveX a try as well (installing IETab in mozilla and chrome helps to run activex controls).
You will need to create an ActiveX control to achieve this. Read more about Active X here http://en.wikipedia.org/wiki/ActiveX
Principally, web browsers can execute / control active x controls which in turn can communicate to hardware on the client machine.
Active X controls work seamlessly on Internet Explorer. There are workaround for other browsers. This link should help http://www.tothepc.com/archives/enable-activex-controls-chrome-firefox-ie/
I am developing a solution to do silent printing from browser. I have found a lot of possible solutions like using a web based solution (as Google Cloud Print), browser extensions/plugins, and finally using custom protocols in browser and linking them to an application developed in any desktop programming language, which can access to resources from your computer.
Check an example here: https://stackoverflow.com/a/37601807/5373542
And the source here: https://msdn.microsoft.com/en-us/windows/desktop/aa767914
I'm working on a net based POS system and need to enable silent printing.
(Print without displaying the PrintDialog).
I have managed to get it working but at times when cashiers want to generate new vouchers it does not print and this is becoming a problem.
I have been instructed to create a Windows Forms app that will be installed on all of my cashiers machines, what this app needs to do is once the cashiers log onto the website and sells a voucher i need data to be sent from my ASP.NET website to the Windows form application where the silent print can take place, so as soon as the cashiers clicks on the 'Sell Voucher' button the data must be sent to the installed windows app and print automatically.
The data that will be sent to the cashiers machines is basic info like Cashier Name, Account Name, Site...etc
How would i go about achieving this result?
Thank you in advance.
The two apps will probably need to share a single data source (e.g. using SQL Server).
If the printing needs to happen silently, without user intervention, then you will need to implement a listener (typically as a Windows Service) that waits for new items to be added and are ready to print.
See: Publish-subscribe pattern or, alternatively, Observer Pattern.
Look into WCF or signalr.net
for signalR there is a .net client for easy implementation into a windows app
Is there a way (and what is that way) to print to a locally connected (client side) Zebra printer (using custom ZPLs and Layouts) from a web application (IIS, C#)?
I need to be able to print more or less generic data, so I can't really use the normal printer screens, because the layouts/ZPL we use are customly made and generated automatically.
What do I need to create in order to have a connection between the web page and the client? Maybe ActiveX or something?
Take a look at jZebra, a small embedable Java applet which facilitates printing to label printers.
The applet is fully controllable from JavaScript, and there are a lot of samples and tutorials. I am using it on Zebra GK420t, but any label printer can be used, since the applet uses raw mode printing.
It's open source, see it here: http://code.google.com/p/jzebra/