Export Grid to PDF file In windows Store app using Xaml and C#

I am working on windows store and have multiple data field  which I have to export to PDF  file 
In wpf  project i easily export gridview data to pdf file but need help to do same thing in windows metro app.
Thanks in Advance

There is no in-box PDF writing API. You will need to find a third party component. If you search the forum there are several threads (as recent as yesterday) with discussing this with component suggestions.

Similar Messages

  • How to use offline map for windows store app using c# and xaml

    Hi friends,
    I want to integrate offline map in my windows store app but I am not able to achieve that.
    Below is my requirement:
    When a user wants to go somewhere where she/he doesn't want to use wi-fi or mobile data but wants to use map to assist her/him to roam around. For this I want to give an option to download the map for that region/area before leaving for that place and there
    she/he can use map even in offline.
    Is it possible that I can achieve this using Bing maps?
    If yes then tell me the processes to follow.
    If no then can I achieve this using "Here" or by using any other API or by tweaking any way?
    Note: I am showing maps in case of online and user can search for directions or any places in that. I am using Bing maps for that.
    Thanks,
    S.Sandeep

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    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.

  • How to create an unsigned appxbundle file for windows store app?

    Hi,
    Is it possible create an unsigned appxbundle file for windows store app and later sign it with my company certificate?
    If yes, how can I achieve it?
    Thanks

    You would create your own appx pacakge using
    MakeAppx.exe.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Wi-Fi SSID in Windows Store App using Win32 API

    Hi Friends,
    I am trying to get the available WiFi SSID and Signal strength of the networks. As there is no managed API that supports in Windows Store App, I though to creating Win32 DLL of  the WiFi SSID
    code and access from my C# code. Well I am able to access the Win32 DLL from my Windows Store App using C# code but the code fails at
    dwResult = WlanOpenHandle(dwMaxClient, NULL, &dwCurVersion, &hClient);
    if (dwResult != ERROR_SUCCESS) {
    wprintf(L"WlanOpenHandle failed with error: %u\n", dwResult);
    return 1;
    // You can use FormatMessage here to find out why the function failed
    I think its because the Windows Store App doesn't have support to access the network so it refuse the Win32 code as well. Please correct me if I am wrong.
    Then I was trying to find a way, and for C++/CX, will this help me, or a better solution if any.
    My goal is to get the SSID and the signal strength of the networks.
    And could you please let me know if there any way to get the Signal Frequency also, So that I can apply this
    formula.
    Regards
    Somnath

    WlanOpenHandle is available to desktop apps only: see the version information in the docs.

  • Problem saving annotated PDF files with windows reader app

    It has happened to more than one of my files. After I read it, and jotted some notes on it, when I was trying to save, it tells me I couldn't. At first, l thought it was a problem of my file. However, it has happened to every file I tried. When I opened
    the file with another PDF app, it opens and saves fine.
     Is there anything I am missing that causes the problem?

    Hi,
    I just made a test using Windows Reader, it works fine without problem. For your problem, I doubt there is a problem with this app and you can try to reinstall this Reader app trough Windows Store.
    On the other hand, you can access to the link below to download the pdf file to make a test. I already made a test using this pdf file on my system, Windows 8.1 Pro. Reader app works fine:
    http://research.microsoft.com/pubs/238337/AutoCharge-TR.pdf
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Best Authentication Library for Windows Phone 8.1 & Windows Desktop 8.1 Windows Store apps using Open Connect 1.0

    What's the best go forward framework (Web Authentication Broker, WPF, other) to use when authenticating against an Open Connect 1.0 authentication server (that's OpenID + oAuth v2.0)?  My developer says that Web Authentication Broker is not supported
    in Windows Desktop 8.1 (so if you can confirm this that would be great also).
    We've created a universal app to support Windows Destkop, Tablet, Phone (8.1 and up) and plan to add support for iOS and Android via Xamarin later.
    Your feedback is appreciated.
    Jacob Hall [email protected]

    Hi Jacob,
    This is not the correct forum for your question, I'll move it to [where is this forum for...] forum, where the moderator may direct you to the correct forum.
    Thanks for your understanding.
    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.

  • Print PDF file directly to store printer

    Hi Gurus,
    Having not found a solution, we think we need help from you. We have searched forums and google but have not found adequate solutions.
    We are a retailer having different stores. Our main office is using SAP. Each store has its printer and defined in our SAP system. We want to print PDF files directly to store printer using SAP . How should we do that ? We think there are 2 steps:
    1) Upload PDF files from network directory into SAP (We done it, no problem)
    2) Having now PDF files in internal tables, how should we proceed to print PDF files using store printers?
         Please note that we do not want to use CL_GUI_PDFVIEWER since we do not want to display the PDF and having the obligation to choose the print option from dialog and also we do not want to call Adobe OLE object  to print
    Any answer would be appreciated
    Thank you very much

    Hi,
    It is really late to give response this post. But still who ever refering to this post for the same issue this solution is useful for achieving same in background:
    Even same can be used in smartforms, for getting spool request in PDF format as well which will decrease the size of file when printing in SAP printer.
    ct_tline is PDF output:
    DATA: lv_pdfsource TYPE xstring.
    FIELD-SYMBOLS:<p> TYPE x. " <p> type any.
    LOOP AT ct_tline INTO cs_tline.
      ASSIGN cs_tline TO <p> CASTING TYPE x.
      CONCATENATE lv_pdfsource <p> INTO lv_pdfsource IN BYTE MODE.
    ENDLOOP.
    * ->Create spool request in PDF format
    CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB'
      EXPORTING
        printer  = 'LOCL'            "Printer name supporting PDF device type
    *   DEST     =
        pages    = 1
        pdf_data = lv_pdfsource        "XSTRING internal table
    *   NAME     =
    *   SUFFIX1  =
    *   SUFFIX2  =
    *   COPIES   =
    *   PRIO     =
        IMMEDIATE_PRINT         = 'X'
    *   AUTO_DELETE             =
    *   TITLELINE               =
    *   RECEIVER =
    *   DIVISION =
    *   AUTHORITY               =
    *   LIFETIME = '0'
    * IMPORTING
    *   SPOOLID  =
    * EXCEPTIONS
    *   NO_DATA  = 1
    *   NOT_PDF  = 2
    *   WRONG_DEVTYPE           = 3
    *   OPERATION_FAILED        = 4
    *   CANNOT_WRITE_FILE       = 5
    *   DEVICE_MISSING          = 6
    *   NO_SUCH_DEVICE          = 7
    *   OTHERS   = 8
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Talking to C# based WinRT components that contain UI features like XAML based user controls from a JavaScript based Windows Store app

    Can you create a WinRT component written in C# that consists of a library of XAML based controls and then used those controls within a Windows Store app using WinJS or via a JS Cordova plugin for Windows 8.1 & WP8.1? 
    Is this possible or can you only use a C# based WinRT component that contains a library of XAML controls in XAML/C# based Windows Store apps? 
    My understanding is that a C# based WinRT component containing non-UI code (i.e. no XAML controls) can be used in a Windows Store app written C#, VB.NET, JavaScript or VC++, but not sure if that principle would work with XAML controls
    wrapped via WinRT types. In theory a XAML control is a C# class, so could work, but not sure how would JS code read that and then launch for example a page or user control from/into its HTML based UI?
    Sandip Ahluwalia

    Right. The code in your app is C# code, but the actual Xaml controls (like the rest of the Windows Runtime) are native code. They are projected into each language (C#, VB, C++ in the case of Windows.UI.Xaml) in a way that appears natural for that
    language and the interop layer is hidden.
    You could expose a Xaml control in a Windows Runtime Component written in any of C#, VB, and C++ to an app written in any of C#, VB, and C++, and the control would appear as a normal C#, VB, or C++ runtime class. This won't
    work for Xaml controls in JavaScript, since the HTML window doesn't have the Xaml hosting infrastructure, but for non-UI code you can write a WRC in C#, VB, or C++ and it will appear as a normal JavaScript class to a JavaScript app.

  • Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    If you just mean, can I close it, sure. In Reader XI click the Tools button to close or reopen it.

  • 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.

  • How to implement Search content of the PDF In Windows Store apps

    Hi,
    I Have Rendered PDF in Windows Store apps .I am not able to Search the Content of the PDF .Please Suggest me best Solution 
    Thanks
    m venkatasuresh

    You'll need to either interpret  the PDF file yourself or find a 3rd party PDF component.
    The in-box PDF renderer produces a non-searchable image rather than text (I suppose you could
    OCR the rendered image, but that's a pretty ugly solution)

  • I cannot open a pdf file with aole-mail. I can open pdf files from windows explorer. I have associated pdf with adobe reader. My operating system is window

    I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as  I have associated .pdf files with adobe reader. My operating system is windows 7.
    When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'.  I have not changed my security settings (Tools, Internet Options, security).

    Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • How can I print a pdf file in Windows 8?

    I'm new to Windows 8. How can I print a pdf file in Windows 8?

    Well, you can install Adobe Reader XI - not the version for Windows 8 tablets, but the one for regular PCs. This is just the same in Windows 8 as other systems, and can print. The tablet reader, which also runs on PCs, can't print.

  • HP Officejet Pro 8500 A909g - doesn't save a scanned PDF file on Windows 8.1 64 bit

    I have just purchased a new PC with windows 8.1 and sucessuly installed the driver from here:
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4158&lc=en&cc=us&dlc=en&sw_lang=&product=3752...
    I can print.
    I have properly set up the digital filing to a network folder.
    when I scan a documet a PDF file is generated in the network location howver it is 0 bites in size.
    please help me.

    Hi @kitesquid,
    Welcome to the HP Forums!
    I understand that your HP Officejet Pro 8500 A909g, does not save a scanned PDF file on Windows 8.1 64 bit. I am sorry to hear this, but happy to help!
    To verify the printer's hardware is functional, are you able to make copies from the scanner glass? Copying a Multipage Original.
    In the meantime, please try our HP Print and Scan Doctor, and let me know the results!
    Hope to hear from you soon!  
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Can't open PDF files from Windows Explorer on Windows 8.1

    Hello,
    after I've upgraded to Windows 8.1, I can't open PDF files from Windows Explorer (directly double clicking the file). The AcroRd32.exe runs in the background (2x !) as I see the processes in task manager, but there is no user interface visible. I have Acrobat
    Reader 11.0.06, the desktop version (not Metro). I tried uninstalling the Acrobat reader and installing it again but this didn't help. The only way to open PDF files is to close the AcroRd32.exe from the task manager, open empty Acrobat Reader from the desktop
    and then drag&drop the PDF file over that window. This is quite inconvenient. Is there a way to fix this issue so I can open PDF files directly from windows explorer?
    Many thanks!

    I had to install adobe reader, but   PDF's used to display just fine with IE, any idea what happened ?
    Windows 8.1 pro.
    thx
    lee

Maybe you are looking for

  • Keep getting a kernel panic when i try to wirelessly print

    this error happens when i try to wirelessly print Interval Since Last Panic Report:  -1 sec Panics Since Last Report:          2 Anonymous UUID:                    88FB00B6-092B-41B2-9999-2EF69BE53E70 Sat Apr 23 23:28:26 2011 panic(cpu 1 caller 0x2aa

  • Windows 8.1 - safe to delete "Browser Choice"?

    Windows 8.1 The European Union ordered Microsoft to include a program in the Windows OS sold in Europe. This program makes a pop up  to invite PC users to use browsers different than Internet explorer. This is not a malware or adware issue. This obli

  • Roboform toolbar disappeared from Firefox 22. Worked fine with Firefox 21

    Firefox updated to v.22 today and the Roboform toolbar is nowhere to be seen. It is in add-ons and enabled, but not visible through toolbars or as the icon to customize toolbars. All was well with Firefox 21. There appears to be a compatibility probl

  • Golive readiness

    Hi all, Could you please provide the details or the check list for the SAP XI readiness 1. while moving the objects from dev to prod since the objects are in different SLDs like grouping of TS etc 2. The necessary backup and disaster receovery plans

  • After the 10.9.2 upgrade I can't screen share with any Macs using Back to my Mac.

    I did the 10.9.2 combo upgrade on a bunch of Macs I manage and now I can't use Back to my Mac for screen sharing on any of them. Does this upgrade mess with the original settings? Any suggestions? Anyone else see this?