|
PDFDoc Scout |
PDFDoc Scout library - Sample
Quick
Start Guide:
How
to create PDF document from Visual Basic: "Hello, World!" PDF
document
You can download the source code of this example here: pdfdocscout_vb.zip This guide will teach you how to create simple PDF document using PDFDoc Scout library and Visual Basic 1)
Install PDF Scout library on your computer and run Visual
Basic. Go to File and click New
![]() The
Project Wizard will appear:
![]() 2)
Select Standard EXE project type and click Open
to create a new project.
Visual Basic will generate new project called Project1 and will automatically open the main form of the generated project: ![]() 3)
Click on Form1 surface and Visual Basic will show
the code window for Form_Load event:
![]() 4)
Now you have to add the code that will create PDF document using
PDF Scout library.
Here
is the source code that you can simply copy and paste into Visual
Basic:
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") PDFDoc.OutputFileName = "HelloWorld.pdf" PDFDoc.BeginDocument PDFDoc.EndDocument ' close document This
function will create PDF file "HelloWorld.PDF" pdf document
on drive C:\
Hint:
You
can simply copy the source code from the snippet above and then
paste it in the Visual Basic code editor as it's shown
on the screenshot below:
5)
Press F5 to run the application (you can also use "Run"
| "Start" menu command).
![]() 6)
Visual Basic will run the application and application will generate
PDF file "c:\HelloWorld.PDF".
You
can view generated pdf document file (.PDF) using Adobe Reader
or another application that is capable of viewing
pdf documents.
![]() You
can download the source code of this example here: pdfdocscout_vb.zip
"Hello, World!" quick start step-by-step tutorials: |
||
|
Copyright © ByteScout, 2003-2009. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|||