Sign In  Sign Up Live-Chat

How to impliment on the web

Last post 05-06-2008, 7:43 PM by forever. 1 replies.
Sort Posts: Previous Next
  •  05-06-2008, 3:47 PM 125674

    How to impliment on the web

    I have downloaded the 3.0 evaluation and loaded the web demo in visual studio 2008. When I run the form fill of the student form it asks me to save the output pdf.  How woud this product be used in a dynamic situation where the data is selected from a database and put int to the PDF fields at the time the web page is selected by a user? I would like to navigate directly to the filled page. This page will have different values each time. Dose there have to be a management scheme for the output files for mutiple concurrent web access or can the output go directly to a web page? I also do not want to ask the user to save the file.

     

     


    This message was posted using Page2Forum from Working with PDF Documents and Pages - Aspose.Pdf.Kit for .NET and Java
     
  •  05-06-2008, 7:43 PM 125689 in reply to 125674

    Re: How to impliment on the web

    Hi,

    Thank you for considering Aspose.

    I found there is some problem in the demos code. You can add the red line to resolve this problem:

        case "FillFields":
         templatePdf = path + @".\Resources\student.pdf";
         Response.AddHeader("content-disposition","inline; filename=" + "studentOut.pdf");

         //this line should be added
         Response.ContentType = "application/pdf";

         FormDemos.FillFields(path,templatePdf, Response.OutputStream);

    We will update the demos code in the future version. Sorry for the inconvenience.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML