Porting windows form application to Windows Phone 7.5 Mango - c#

We have an application written in C# (.Net 2.0). MS-Access as database and crystal report for reporting. I have to port it to Windows Phone 7 (Target mobile is LUMIA 800).
My concerns are:
Does Crystal report work on windows phone 7?
Can I connect app to MS-Access in same way that I am connecting it on computer?

bad news, you have to start from scratch as WP7 only support SilverLight apps (XNA too, but it's for games). Moreover, you won't be able to connects to access directly.
A classic Data application on WP7 will use some Web Services hosted on a server that will provides all data access, whichever is behind. Then the WP7 will query the WS to get/put data.
I'd suggest you to take a look at WCF RIA Services, but you have to understand it's a high learning curve starting from Windows Forms skills.

Does Crystal report work on windows phone 7 ?
No, Crystal Reports are not supported on Windows Phone. Nor are they suitable for presentation on a mobile device.
Can I connect app to MS-Access in same way as I am connecting it on computer?
Microsoft Access isn't supported on Windows Phone. You can connect to remote databases, as described by Steve, but for local data storage, you would have to convert your data.
Also, the UI and the entire User Experience (UX) for a mobile application is vastly different than for a desktop application, and as such you would want to start from scratch regardless.

Related

Authentication and Authorization in Local Network UWP Apps

I want to develop a (Universal Windows Platform) UWP app that will run locally. But another requirement is that 2 or more of the same UWP apps will be on another PC as a client. In the same local network, the database will be using sharing across all devices.
And of course, authentication and authorization will be needed on my UWP App.
I've done those in Web Apps using supported libraries according to the used language. But no idea how to implement it in UWP and local-network applications.
I've targeted to use UWP C# and MySQL database.
What would be the architecture of the App and popular tech stack to use because I'm not familiar with the C# world? Thank you very much.

Invoking desktop app from Windows Store app

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

Accessing SQL Database from Windows Forms App and Windows Phone App

I have a project assignment from the university and want to ask you if you can show me the right approach. I'm not asking for any code or to write me something. I just want some guidelines to follow.
Firstly, to explain a bit.. I have to design and implement an Info System in .NET. It should have a Desktop App (based on Windows Forms), a Mobile App (Windows Phone 7.1) and a database (MS SQL). The idea is to have a database, hosted on a remote machine. The desktop and mobile apps should be able to connect to that database and do some stuff with it (mobile app will be only for viewing data, not modifying). The system must be multi-client - the database should be able to be accessed from multiple desktop and mobile clients at a time.
I'm ready with the GUI and it's time to do some real work. What's the easiest way to get that communication done? I thought of a WCF Service Application, which will provide the clients' access to the DB. My idea is to have the database and the service on a machine with a public IP address. The apps (desktop and mobile) will connect to that machine and respectively to the SQL through the WCF.
I saw some tutorials around, but didn't find one that shows how to make that WCF Service work with both Windows Forms app and Windows Phone app. I'm not very familiar with WCF - should I have IIS to run the service? I'm also not sure what kind of techniques I have to use on the client side to do the connection...
Is this approach rght? Can this be done in the way I explained? What should I be aware of? I will appreciate every kind of advise and reproach.
The easiest (and in your case, most efficient) way would be to use Windows Azure. For the purpose of your project, you can always sign up for the free trial.
Specifically, you can leverage Windows Azure SQL Database. Or, if you are so inclined, you could use Mobile Services, which also relies on SQL databases but you will have a much better time setting it up in your Windows Phone app (doesn't matter whether you want to read or write data).

steps for Windows azure Database connectivity

I'm developing Windows Phone application using Visual Studio 2010 using C# for database connection plan to use Windows Azure. Will you please say the steps? I have to call my web services into my app. How I access my REST web services in my Windows Phone ap? I need a C# coding for that too.
In my opinion the best approach now for this is using Windows Azure Mobile Services, please have a look at this tutorial which explains how to use it with Windows Phone 8

Waking the computer in Windows Store apps

How can we wake the computer from standby, sleep and/or hibernate in a Windows 8 metro-style application?
I have tried using the code I had for my old Winforms and WPF apps and even read and tried many tutorials online but nothing works. Also when searching for this there appears to be no results pointing to any kind of documentation.
Windows RT does not expose such low level API if i am correct. Windows Store apps are for simple easy to use - mainly consumption apps.
You can however couple your windows store app with a ful windows app (desktop / traditional app) that your windows store app communicates with (WCF etc). The traditional app can do all it did before.
the only downside is that you cannot install your traditional app on Windows RT

Categories