Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2010, 3:57 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Jan 2010
Age: 27
Posts: 9
Reputation: 0
Turbols1 is on a distinguished programming path ahead
Default Best way to view/print a static pdf?

Wondering what is the best method of viewing a pdf, and adding text to the pdf, then printing it out?

Currently, I opened the pdf in Photoshop, saved it as a bitmap, made it the background image on a form, overlayed it with labels, and am using the form.print method. This isnt exactly the best way to do this. Does anyone else have any good suggestions (without spending more than say $40)?

Project Background:
I work for an aircraft manufacturer/maintainer, and every time we have a broken/removed part, I have to log into our part logistics website, then hand write a form with all the installed and broken parts info (a full page). My program parses all the necessary info from the website, then loads it into textboxes (to be modified if needed) which are then copied into the labels overlaying the image of the form I have to fill out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-29-2010, 6:30 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,303
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

When you have Adobe Reader installed you also get an ActiveX control you can add to form to display (and print) Pdf files from your application. "Choose items" for Toolbox and find "Adobe PDF Reader" in COM page listing. Then add the control to form.
Code:
Me.AxAcroPDF1.LoadFile("path")
Me.AxAcroPDF1.Print()
Quote:
adding text to the pdf
You have to use a library that supports editing, Adobe of course has packages for this, there are also free PDF editing libraries out there such as known iTextSharp | Get iTextSharp at SourceForge.net and PDFsharp & MigraDoc - Home.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-29-2010, 7:42 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Jan 2010
Age: 27
Posts: 9
Reputation: 0
Turbols1 is on a distinguished programming path ahead
Default

Thanks for the info John. I tried using this control yesterday in my search, but apparently it will not work in Vista 64 bit. I have read there is a workaround for this, but havent found it yet...I will look at the other links you posted and see if I cant get something suitable.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-29-2010, 3:27 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,303
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Quote:
I tried using this control yesterday in my search, but apparently it will not work in Vista 64 bit.
It is 32bit so you have to compile your project for x86 and not "any cpu" to make it work in 64bit. (see Compile in 64bit?)
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 2:50 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.