Create PDF file in WP7 using C# - windows-phone-7

I want to develop small application for WINDOWS PHONE7 in which User enters Transaction details eg.Transaction Amount and Bank code.
I want to create new PDF file and write this data in it.
I tried adding iTextSharp.dll but is gives Error: Reference cannot be added it Windows Phone project will work with Windows Phone assemblies.
Please suggest other way or assemblies available for it.

You cannot do this on the phone. So don't do it on the phone. Do it on a server in a web service. You can deliver the PDF back to the phone if that is its final destination, or email it directly from the server.

Related

create exe file from windows universal app

I have created a windows universal app with WinJS in visual studio 2015. Now I can run it from my visual studio. How can i make an exe file of the app so that i can distribute it to my friends? Is it only possible to upload in windows store?
I guess you're talking about an app for Windows 10!?
There are several ways to get this done.
The best way is to distribute it via Windows Store. You can hide the app there so that it is only visible to people who have the direct link to the app.
Your friends can download it directly from the store.
Another option is to provide the live IDs of your friends in the store. Then your friends get an email with a direct link.
The option you might actually be looking for which doesn't involve the store at all is to create an app package and to deploy this package to your friends. (See screenshot)
For Windows Store Apps you won't create an .exe-File, you only create .appx Packages.
Choose not to upload to the store in the next dialog. Then click create.
In the output directory you will find the *.appx file (not an *.exe)
You can distribute the appx via sideloading. Simply copy the content of the output folder to your friends's machine and run the ps1 script in Powershell. This will start the installation of the app.
Little hint: This requires your friends PCs to be enabled for sideloading.
You can set this in the settings dialog. See Screenshot.
In Current Windows Dev account, you can use Promotional codes to distribute the app to your friends instead of using side load.If the app is company app, I recommend by using sideload method.

Creating Crash Log for Windows Phone 8.1

I am working on Windows phone 8.1 app, I need to log all the exception and some information to a file and also console at the same time.
1.How can I do that?
2.Is there any third party for that?
I need to send that log file when ever the app crashes.
You could use HockeyApp. It stores crash report and sends it to the server next time user start the application. It completely free (Microsoft has acquired HockeyApp) and provides SDK for Window Phone / Windows Store platform.
http://hockeyapp.net/features/crashreports/

Windows phone 7 develop app that opens mail attachment

Is it possible? I want that if the attachment is of a particular mime type my app opens it or it will be listed as one of the possible viewer choice... I googled but i found nothing so I'm asking myself if it is possible on windows phone.
this is not possible... the only way to open a file that has a known mime type is to use a web browser task and to pass a Uri.
You cannot associate MIME-types directly in your application in Windows Phone 7. Your best bet would be to have the user download the file through your application.
Simply saying, you could take a potential workaround of sideloading an application that "fakes" the GUID of an application that is associated on a system level. I wrote about that here. Your problem is, however, the fact that you won't be able to access the file system without proper permissions.

Save Image of Contact in windows phone 7 using C#

I am working on application where I need to save image of particular contact in contact list of windows phone 7 using C#, how to save image of contact which I am unable to do.
You can't.
The only way of saving contact details is via the `SaveContactTask' but this does not support saving images.

Launching other applications in Windows phone 7 Programatically

I am downloading a file from Internet, and I am saving this in IsolatedStorage. and Now I want to Open that file, ie if it is excel we should open a file with excel if excel is installed, or otherwise prompt the user to choose the application to open that file as like in PC windows os, How can we do this.. give me some Idea..
As general rule, there is no way to do what you are describing. The exception to this is for media, for which you can integrate with the Music and Video hub. This would allow you to, for instance, download a movie and then play it in the same way as if it was part of the zune collection, even though it's in IsolatedStorage.
If you want to download office files from the internet you can simply link to them directly by opening them in a WebBrowserTask. The user would then be able to open the file in the relevant office program. So, if you did the follwoing, the file would be opened in Excel:
var wbt = new WebBrowserTask();
wbt.URL = "http://example.com/file.xlsx";
wbt.Show();
This would not allow you to store the file in IsolatedStorage and that may or may not be an issue for you.
Windows Phone applications run in isolation and with very few exceptions cannot interact with other programs. So there's not a way for you to present a program chooser to allow the user to choose another application to launch.
I am pretty sure there are system launchers for different applications. For example, the YouTube application can be launched programatically the way I showed here - basically it is similar to the way Matt showed. Ultimately, each app is launched via a UIX reference (catched here), but there is no public endpoint to open a res URL.

Resources