Printing in Windows Store Apps

So,
I am changing this post because my problem is far more complicated (annoying) than originally expected.  If I were creating a WinForms app I would have access to System.Drawing and the Win32 API, but as I am currently trying to create this as a Windows
Store app, it renders those possibilities moot.
The idea is to print a small 1x1 inch to a specific printer.  Now, in the Runtime intrerop functionality I could search for the printer driver and just assign that value to the PrintDocument.  Using a graphics I could just draw the in memory bitmap
to the document and send it away.
However, in this hyper security limited context of the metro interface "store app" I have found so far only Windows.Graphics.Printing and WIndows.UI.Xaml.Printing namespaces.  Though they seem to allow for sending data to
a printer thus far I have not found any indication I determine
which printer.
The whole idea is a closed box system, so no extraneous dialogs or user interactions.  They pick the image, set the quanity, and the golden hamster wheel spits out a printed label.
Now, I can do this very simply in a WinForms application, which I will be working on concurrently so I have a final product to deliver, but for myself (and the client) we would prefer a windows 8 metro style app to do this.  (now if store apps just
access the entirety of .Net that would so much simpler, but wishes and horses).
So could anyone provide me a map for more advanced control of the Printing process from a Windows Store App that I might figure out how to send the print document to the printer I want?
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner

Excellent, thanks for the quick reply.
For clarification, you mentioned a few terms that i would like to clarify:
1.  windows runtime component / desktop printing API
this sound like an actual windows 8 desktop application.  Like what you'd run on windows 7 and windows 8 desktop.  (Full .net 3.5/4/4.5 not the "Windows Store App").  Basically a Windows Forms application / class library / win service
maybe?
2. brokered
this term sounds like there is a way to communicate from a Windows Metro/Store (XAML) App to a windows desktop component (a process maybe?).  If so, how does one do that.  If I create a WinForms application and create a class library for it. 
That class library can be used by any .net application that references it but in the Windows Store App project I can't reference a standard class library, but your use of the term "brokered" suggests there is a way to do this.  Where would I
find how to do that?
3. desktop
Finally, by the mention of the term "desktop" red flags go up.  I personally will never use Windows RT because it lacks the desktop.  However, by the suggestions you've made here the only way to get my goal seems to be in using Windows
Desktop features.  If I were to create the XAML App and the "brokered component" to thus have access to "desktop printing", is that something that will even work on a Windows RT machine?
Thanks so much,
J"SD"a'RR
"Never Trust a computer. Your brain is smarter than any micro-chip."
PS - Don't mark answers on other people's questions. There are such things as Vacations and Holidays which may reduce timely activity, and until the person asking the question can test your answer, it is not correct just because you think it is. Marking it
correct for them often stops other people from even reading the question and possibly providing the real "correct" answer.

Similar Messages

  • Powershell to get Descriptions/Reviews of Windows Store apps ?

    I am so wildly excited that Win10 will come with a real package manager as well as that the idea of programmatically accessing Windows Store items for CRUD is a supported feature. This is a huge win for MS over Apple imho.
    The other thing that drives me crazy about Apple store (ie besides being hard/impossible to programmatically add/remove) and is similar to the Windows Store for win8 is the GUI-only display of pre-sales/pre-install information.
    Is there a way to get info about a Windows store app from the command line, eg Powershell? For example, can I print a list of review with their posting dates and the manufacturer's description?
    thank you!

    I love this! ty, here is a sample output ;
    Name : Microsoft.ZuneMusic
    Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture : X64
    ResourceId :
    Version : 2.6.672.0
    PackageFullName : Microsoft.ZuneMusic_2.6.672.0_x64__8wekyb3d8bbwe
    InstallLocation : C:\Program Files\WindowsApps\Microsoft.ZuneMusic_2.6.672.0_x64__8wekyb3d8bbwe
    IsFramework : False
    PackageFamilyName : Microsoft.ZuneMusic_8wekyb3d8bbwe
    PublisherId : 8wekyb3d8bbwe
    IsResourcePackage : False
    IsBundle : False
    IsDevelopmentMode : False
    Dependencies : {Microsoft.VCLibs.120.00_12.0.21005.1_x64__8wekyb3d8bbwe,
    Microsoft.Media.PlayReadyClient.2_2.11.2154.0_x64__8wekyb3d8bbwe,
    Microsoft.WinJS.2.0_1.0.9600.17018_neutral__8wekyb3d8bbwe,
    Microsoft.ZuneMusic_2.6.672.0_neutral_resources.scale-140_8wekyb3d8bbwe}

  • Login to WebApi (MVC + WebApi) with Microsoft Account from Windows Store App

    Hi
    How can I access a WebApi Controller (ASP.NET MVC+WebApi) that is secured with Microsoft Account from a Windows Store App?
    I have no idea how to login. I tried the LiveSDK but this gives me only access to OneDrive, Callender and so on.
    Could someone please point me in the right direction.
    Thanks
    Guenter

    Hi Guenter,
    To be clear, you are using Microsoft account as login and at same time you have your own REST service for other functionalities?
    Let's say if you login with LiveSDk, you should be able to get some access token, see this for more information:
    Signing users in, after that use the token to access your REST service, as I understand REST service is a kind of http request, we can use HTTPClient to request data from the address.
    I'm afraid there is no existing sample here but the only thing I found is HTTPClient sample:
    https://code.msdn.microsoft.com/windowsapps/HttpClient-sample-55700664, you can use POST to send your token information to the server.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Windows Store apps on Windows Server 2012 with XenApp?

    We've got asked by a vendor whether our app will be able to support multiple simultaneous users, when installed on Windows Server 2012 and accessed via XenApp.
    I suppose the real question here is whether or not Windows Store apps can be run in XenApp over Windows Server 2012 at all, and if so whether there are any special requirements on the apps to support multiple simultaneous instances execution.
    The app itself takes each user through a log in procedure, during which all the dynamic user-specific data is retrieved from the back-end server; no such data is stored by the app locally.
    Any advice will be greatly appreciated!
    Thank you,
    Alex

    Hi,
    To better help you, the Citrix support could be more helpful on your questions:
    http://support.citrix.com/search?searchQuery=*&lang=en&sort=date_desc&prod=XenApp&pver=
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    As I known, we always use Remoteapp feature to share app, but it is only worked for desktop app:
    Publishing RemoteApps in Windows Server 2012
    http://social.technet.microsoft.com/wiki/contents/articles/10817.publishing-remoteapps-in-windows-server-2012.aspx
    About citrix product, I knew little about it.
    Kate Li
    TechNet Community Support

  • Run Multiple Instances of Windows Store App

    We have a desktop app which we are considering porting to Windows Store. Our app allows the user to generate orders. If the user wishes to generate several orders simultaneously, they open several instances of our app.
    Is it possible to run multiple instances of a Windows Store app on Windows 10?

    Hi,
    Another thread in MSDN forum already answered this question:
    https://social.msdn.microsoft.com/forums/windowsapps/en-us/19b5bd94-d772-46b0-b5af-a1be475b0e16/multiple-instance-in-metro-app
    The app is still single instance, but it can now open multiple windows by calling
    CoreApplication.CreateNewView. This is demonstrated in the
    Multiple Views Sample
    Roger Lu
    TechNet Community Support

  • Distributing multiple versions of an app within a single Windows Store app

    The company I work for creates Point Of Sale (POS) software using Software As A Service (SAAS), so we host our clients' databases.  We do not force all of our clients to all be on the same version of our software; i.e. some clients are on version 3,
    others v4, others v5, etc.  As you would expect, the database schema for each of these versions is different, so each of these clients also use a different version of our client-side app.
    We are looking at making a Windows Store app that acts as a light-weight POS app that clients can use to sell their products.  The problem is, we will require having multiple versions of our Windows Store app in production; the version of the app that
    the client uses must correspond to their database version.  We were initially hoping to have our Windows Store app detect which version of the app the client should be using, and then automatically update itself to the correct version, but
    were told on this post that it violates the Windows Store certification criteria, so that's not an option.
    It has been suggested that we put multiple apps into the Store; one for each version of our software. We really don't want to do this though, as when we upgrade a client's database from one version to the next it would require that they uninstall their current
    app and install the newer versions app, causing them to lose all of their custom settings. We would like the updates to remain as transparent to the end users as possible; the store clerk shouldn't need to worry about which version their database is on so
    they know which app to download from the Store.
    As a possible workaround, is it ok for us to package all 3 versions of our app into a single Windows Store app, and then just have the app check at runtime which version it should run?  I assume that this is alright, since we will not be downloading
    any other code or installing any software/apps, as was the case with our original solution that violates the certification criteria.  Essentially we would just have 3 different classes and determine at run-time which classes code we should run. 
    I know that this solution isn't ideal, as it means our app will be 3 times larger than it needs to be, and that an update to any one of the 3 versions of our software will require an update to the Store app (so potentially users may download a new version
    of the Store app, even though it doesn't have any changes for the particular code version (i.e. class) that they will use), but it's one of the best alternatives we have come up with.  I just want to check that this solution doesn't also violate any certification
    criteria before we go down this road.
    If this is not allowed then our only other alternative might be to go with sideloading (as
    I discuss on this thread) and avoid using the Windows Store all together, but we would prefer to use the Store if possible as it eliminates a lot of overhead that we would have to deal with if we use sideloading.
    Any insights or suggestions that you can give are appreciated. Thanks!
    - Dan - "Can't never could do anything"

    Hey Mr_bigworlds, thanks for the reply.  The moderator on this post actually told me that this
    would be a better forum for my inquiries.  I agree that there may be another forum better suited for this question (there are so many that I don't know about), but since this relates to Windows Store certification criteria, I don't think the Windows Desktop
    Development forums are the place for it.
    - Dan - "Can't never could do anything"

  • How to find out if the company account for developing windows store apps is verified/approved?

    We have created the account for windows store app. How can I find out if the account was approved (the identity of the company)? 

    Hi,
    There is one more method,i know
    Set the JAVA_HOME and PATH
    then execute the
    $WL_HOME\wlserver_10.3\server\bin>setWLSEnv.cmd
    Go to directory which contains weblogic.jar ($WL_HOME\server\lib) and run below command
    $WL_HOME\wlserver_10.3\server\lib>java -cp weblogic.jar weblogic.version
    WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255
    Hope this will be helpful,
    Regards
    Fabian

  • How to use local .sdf database in a windows store apps

    Hi,
    I am new in windows store app development. I have been working in WPF application development for long time. Now I want develop windows store apps. I am studying on it. I got a problem. I what to store data from windows store app in .sdf database file. I
    confused is .sdf database is compatible with windows store apps.
    I want Deploy the apps in windows apps store. Is .sdf database support in client machine while he download it and run his own machine.
    Please Suggest me about it with sample reference. It will be very helpful for me.
    bye
    With Regards
    Sadequzzaman Monoj
    Bangladesh

    SDF files are used by Microsoft SQL Server Compact Edition. SQL CE is not supported for Windows Store Apps/Universal Apps. Only WP Silverlight Apps can use SQL CE. You will have to switch to a different database format.
    As far as I know the only DB currently supported for local deployment with Windows Store Apps is SQLite.
    This article gives an introduction on how to get started with SQLite in Universal Apps:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/

  • How to use .sdf database in a windows store apps

    Hi,
    I am new in windows store app development. I have been working in WPF application development for long time. Now I want develop windows store apps. I am studying on it. I got a problem. I what to store data from windows store app in .sdf database file. I
    confused is .sdf database is compatible with windows store apps.
    I want Deploy the apps in windows apps store. Is .sdf database support in client machine while he download it and run his own machine.
    Please Suggest me about it with sample reference. It will be very helpful for me.
    bye
    With Regards
    Sadequzzaman Monoj
    Bangladesh

    SDF files are used by Microsoft SQL Server Compact Edition. SQL CE is not supported for Windows Store Apps/Universal Apps. Only WP Silverlight Apps can use SQL CE. You will have to switch to a different database format.
    As far as I know the only DB currently supported for local deployment with Windows Store Apps is SQLite.
    This article gives an introduction on how to get started with SQLite in Universal Apps:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/

  • How to distribute my windows phone 8 app and windows store app without publishing in the store

    How to distribute my windows phone 8 app and windows store app without publishing in the store
    any business license or enterprise license needed..
    I am a windows developer talking behalf of my company i.e  wipro
    I have a question about the enterprise license   and  we are building an app for the limited users i.e our company employees and users and we do not want to publish in the store
    How to release the app?
    what are licenses etc needed?

    Hi,
    for developers distributing apps without Publishing in the Store, the sideloding Enterprise key license through volume licensing is required.
    Starting May 1, 2014, customers who want to enable sideloading will be able to purchase an Enterprise Sideloading key for $100 through the Open License program. 
    An unlimited number of devices can be enabled for sideloading using this key.
    thanks
    diramoh

  • Convert Below Java code equivalent to c# windows store app.

    Hi
    please help me " To convert Below Java code equivalent to c# windows store app."
    private String SecretKey = "enctsbqrm6hxyjfa";
        public byte[] encrypt(String text) throws Exception
            if(text == null || text.length() == 0)
                throw new Exception("Empty string");
            // convert key to bytes
            byte[] keyBytes = SecretKey.getBytes("UTF-8");
            // Use the first 16 bytes (or even less if key is shorter)
            byte[] keyBytes16 = new byte[16];
            System.arraycopy(keyBytes, 0, keyBytes16, 0, Math.min(keyBytes.length, 16));
            // convert plain text to bytes
            byte[] plainBytes = text.getBytes("UTF-8");
            // setup cipher
            SecretKeySpec skeySpec = new SecretKeySpec(keyBytes16, "AES");
            Cipher cipher = Cipher.getInstance("AES/ECB/PKCS7Padding");
            //byte[] iv = new byte[16]; // initialization vector with all 0
            cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
            // encrypt
            byte[] encrypted = cipher.doFinal(plainBytes);
            return encrypted;
      Thanks            
      Nitin

    Hello Nitin,
    Your current requirement is beyond the scope of our support for this fourm which is used to Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
    If you want to know how to encrypt/decrypt in windows store app, I suggest that you could post a it to:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=winappswithcsharp
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TelemetryClient.TrackException Does Not Include Method Name Or Call Stack (Windows Store App)

    We are attempting to use Application Insights (v0.12.0-build17386) for our Windows Store App.  When we use TelemetryClient.TrackException, no details appear in the azure portal.  The Failed Method is "Could Not Parse" and the Call Stack
    is empty. If we click on the "..." it gives more details but still no method name or call stack information to help us determine where the exception was thrown.  Is this by design, not implemented, or did we miss something obvious?  The
    code is very simple:
    public static void LogException(Exception exception)
    TelemetryClient telemetryClient = new TelemetryClient();
    telemetryClient.TrackException(exception);

    This is a known limitation of this version. It is in the backlog to fix. Note though that 0.13 is out already and fix should be included in the next version (0.14)
    Anastasia

  • Trigger Windows Store Apps update by script at first login

    Hi
    Is it possible to trigger Windows 8.1 to check for Windows Store Apps updates at first login?
    My issue is that when I add language packs to my Windows 8.1 images, the default apps (Mail, Calendar, Food and Drinks) are still in English. Not until the Windows Store apps are updated will they change to the correct language (Language of the
    OS). I have turned on autodownload in the registry using this registry key:
    REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /t REG_DWORD /d 4 /f
    It seems kind of random how long it takes before the autodownload kicks in. Some times it just a reboot and other times it takes like 24 hours. Can I trigger this update to start with some kind of script?
    Thomas | MCP | http://www.techwork.dk

    I'd probably stick with the TechNet side:
    https://social.technet.microsoft.com/Forums/en-us/home?category=w8itpro&filter=alltypes&sort=lastpostdesc
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • How to display the PPT, PDF, XL, DOC files with in the Windows store app?

    Hi,
    I would like to display the PPT, PDF, XL, DOC files with in the Windows store app? is there any controls provided by Microsoft to view these files with in the app?
    Or
    Any workaround to achieve the desired functionality?
    Kindly provide your inputs if any one has.
    Regards
    Prasad

    Hi Prasad,
    As I know currently there is no in-build functionality to display the PPT, XLS or DOC file directly on the Windows Store App, but you can always open these files by
    Launcher class
    However a good news is we can display PDF on Windows Store App by
    Windows.Data.Pdf class, see this for more information:
    https://code.msdn.microsoft.com/windowsapps/PDF-viewer-showcase-sample-39ced1e8/
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Image file can't be opened by windows store app if the file is in the Ext4's external hard disk.

    My question is described below:
    I have two disks, external hard disk and removable disk. They are formatted with EXT4.
    I put the same image in the disks, and use Ext2Fsd to mount the disks.
    I open the file in win8, and it will default open by the windows store app : photos.
    It will be success to open if the file is in the Ext4's removable disk.
    It will be failed to open if the file is in the Ext4's external hard disk.
    I don't know why it will be failed to open if the file is in the Ext4's external hard disk.
    Does anyone have similar experiences?

    Hi hatasum,
    Thanks for posting!
    Base on my experience, if installed Ext2Fsd, we can read the ext4 file system on windows system. But Which version of Ext2Fsd did you use? From my experience, Ext2Fsd is not spported fine  about windows 8 version. Please refer to this software official
    website (http://www.ext2fsd.com/ ) . I suggest you could post this issue to the Ext2Fsd discussion forum ( such as
    http://sourceforge.net/p/ext2fsd/discussion/143329/thread/7f262ad0/ )for better help.
    Thanks for your understanding.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for