PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PdfFilePrinter

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
jra2007



Joined: 30 Oct 2007
Posts: 6

PostPosted: Mon Nov 05, 2007 6:39 pm    Post subject: PdfFilePrinter Reply with quote

When I am trying to execute the following code,

Dim printer As PdfFilePrinter = New PdfFilePrinter("C:\TEMP\OutboundCorrespondence\" + _PdfOutputFile, _
PrinterName)

Try
printer.Print()


Catch ex As Exception
Console.WriteLine("Error: " + ex.Message)
End Try

I get the following exception

--------------------------------------------------------------

System.ComponentModel.Win32Exception: The system cannot find the path specified
at PdfSharp.Pdf.Printing.PdfFilePrinter.Print(Int32 milliseconds)
at PdfSharp.Pdf.Printing.PdfFilePrinter.Print()
at Bcbst.IM.Services.OutboundCorrespondence.PdfBatch.MergeAndPrint() in C:\Documents and Settings\J59546A\My Documents\Visual Studio 2005\Projects\OutboundCorrespondenceService\PdfBatch.vb:line 194
Back to top
View user's profile Send private message
stebo0728



Joined: 04 Nov 2008
Posts: 1

PostPosted: Tue Nov 04, 2008 10:52 pm    Post subject: PathToAdobeReader Reply with quote

hey, you have to set the static variable of PdfFilePrinter.PathToAdobeReader to the either adobereader or acrobat executable file before you call Print(), are you doing this? also you need to define the default printer name if you do not use the Print method that calls for a printer name
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com