print a pdf file from vb.net2003 web appln

print a pdf file from vb.net2003 web appln

Page 1 of 1

1 Replies - 3635 Views - Last Post: 31 December 2009 - 12:12 AM Rate Topic: -----

#1 Dwin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-December 09

print a pdf file from vb.net2003 web appln

Posted 30 December 2009 - 11:55 PM

Hi ALL,

I am trying to print an existing pdf file from vb.net webapplication.
I am using vb.net2003.Anyone having an example pgm please help.


I tried this but prints blank page .Can anyone find the problem with this code.

Dim pd As PrintDocument = New PrintDocument
pd.DocumentName = "D:\Test.PDF"
pd.OriginAtMargins = False
pd.PrinterSettings.PrinterName = "HP LaserJet P1500 Series PCL 5e"
pd.PrintController() = New System.Drawing.Printing.StandardPrintController
pd.Print()

Is This A Good Question/Topic? 0
  • +

Replies To: print a pdf file from vb.net2003 web appln

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1660
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: print a pdf file from vb.net2003 web appln

Posted 31 December 2009 - 12:12 AM

Since it's a Web Application it belongs in the ASP.NET forum. ** Moved **
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1