locked
Urgent! How to create a ebook using web services?

    Question

  • Hi I would need some help on how to creating a e-book using web services. Sample code would be good for me.

    I had been finding sources for quite sometime but i doesn't seems to be easy to find as compare to andriod.

    Description:

    Windows 8.1 SDK Sliverlight.

    The e-book will on PDF format.

    Once user click e-book icon, i would link to my database to retrieve all the ebook available via web services.

    Then user select the e-book, the content will be again retreive from my database to the users.

    Is there any solution? I need it quite urgent.

    Wednesday, January 7, 2015 9:18 PM

Answers

  • Hi Ding Zheng,

    >>Once user click e-book icon, i would link to my database to retrieve all the ebook available via web services. Then user select the e-book, the content will be again retreive from my database to the users.

    According this approach, I would suggest you make good use of build-in API to render PDF in store app. see more classes in the following namespace.  http://msdn.microsoft.com/en-us/library/windows/apps/windows.data.pdf.aspx. Using this APIs need PDF file in local storage, so I list the following steps for you to try.

    Step 1, Store PDF file in web site folder and save the PDF URL in database.

    Step 2, Use Web service/WCF/REST service to public the PDF to store app.

    Step 3, Store app uses service to get PDF list and then display them.

    Step 4, User choose one PDF, get the PDF download URL from service and then download it on local storage. Store app support download file form server, you can use BackgroundDownloader. See from http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx.

    Step 5, Use PDF APIs to render it in store app. See code sample https://code.msdn.microsoft.com/windowsapps/PDF-viewer-sample-85a4bb30#content.

    Please feel free to let me know if you have any concerns.

    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.



    Thursday, January 8, 2015 3:33 AM
    Moderator

All replies

  • what do you already have? making this sample is pretty big..

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Wednesday, January 7, 2015 10:46 PM
  • Hi Ding Zheng,

    >>Once user click e-book icon, i would link to my database to retrieve all the ebook available via web services. Then user select the e-book, the content will be again retreive from my database to the users.

    According this approach, I would suggest you make good use of build-in API to render PDF in store app. see more classes in the following namespace.  http://msdn.microsoft.com/en-us/library/windows/apps/windows.data.pdf.aspx. Using this APIs need PDF file in local storage, so I list the following steps for you to try.

    Step 1, Store PDF file in web site folder and save the PDF URL in database.

    Step 2, Use Web service/WCF/REST service to public the PDF to store app.

    Step 3, Store app uses service to get PDF list and then display them.

    Step 4, User choose one PDF, get the PDF download URL from service and then download it on local storage. Store app support download file form server, you can use BackgroundDownloader. See from http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx.

    Step 5, Use PDF APIs to render it in store app. See code sample https://code.msdn.microsoft.com/windowsapps/PDF-viewer-sample-85a4bb30#content.

    Please feel free to let me know if you have any concerns.

    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.



    Thursday, January 8, 2015 3:33 AM
    Moderator
  • Right now i only able to retrieve ebook and i'm stuck. 

    the crucial part for me is i think need some code for how to retrieve ebook from webservice in pdf format which i cant found on any website.

    Thank all :)
    • Edited by Ding Zheng Thursday, January 8, 2015 8:47 AM
    Thursday, January 8, 2015 8:45 AM