PDFDoc Scout |
PDFDoc Scout library - Sample
How to create PDF document using PDFDoc
Scout library in ASP.NET environment
"Hello,
World!" example
You can download the source code of this example here: pdfdocscout_asp_net.zip This page contains step by step tutorial how to create PDF document in ASP.NET using PDFDoc Scout library. IMPORTANT NOTE: To use PDFDoc Scout library on web-server
you have to have additional "Web License"
PDFDoc Scout library
is capable of generating of in-memory PDF files so file needn't
to be stored as a file on hard drive and can be streamed right
into the browser window.
There is a special
"GenerateInMemoryFile"
property for such purposes. Set this property to TRUE
and the library will generate and keep your PDF as in-memory
stream without using of any temporary files.
1) Install
PDFDoc
Scout
library on your
computer and run Visual
Studio.NET
2) Go
to File menu
and select New
Project:
![]() Select ASP.NET
Web Application
project type and click OK
![]() 3) Visual
Studio.NET
will create new empty ASP.NET
project. Double-click
on the empty space of the form:
![]() This will open source
code editor window on procedure handling Page_Load
event. We will
place our code for PDF PDF animation generation into this
procedure:
![]() 4)
Use the following code for procedure (you can simply copy and
paste this code from this page into ASP.NET
source code
editor window):
'Put user code to initialize the page here ' add text to current page PDFDoc.EndDocument ' close PDF document generation ' get size of generated in-memory PDF document 5) Now run ASP.NET
project using
Debug | Start
command:
![]() Visual Studio.NET
will run ASP.NET
project on web-server and you will see Internet
Explorer window
with generated PDF document:
![]()
"Hello, World!" quick start step-by-step tutorials: |
|
|
||