473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

pdf printing using ProcessStartInfo

Sam
I am trying to print pdf documents from my Intranet ASP.NET application. I am using the code listed below. The code works fine when run from a console or windows application but nothing happends (no printing and no exception) when its executed from an ASP.NET app. The code is suppose to print to the users default printer, so I figured it was running under an incorrect security context, so I turned on impersonatation, but that made no difference

An ideas
Regard
Sa

Dim p As New System.Diagnostics.ProcessStartInf
p.Arguments = "/p /h " & sPathFil
p.FileName = "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe
p.UseShellExecute = Tru
Dim process As New System.Diagnostics.Proces
process.Start(p)
Jul 21 '05 #1
0 1581

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Trev Hunter | last post by:
Heya All, Recently, I've implemented a simple document storage application. To cut a long story short, it achieves this by: 1) User opens a file 2) File is read in and stored in another...
7
by: TerishD | last post by:
Can anyone tell me how Microsoft expects someone to print? I have been all over this place, and NOWHERE does it have a walkthrough, paper, or anything that says how one is supposed to print. ...
2
by: Dan | last post by:
We are running into trouble when trying to print proprietary formats (ie; .pdf, .xls, .doc, etc.) from our VB.NET application. Binary files generate garbage when printed. We have no trouble...
0
by: Sam | last post by:
I am trying to print pdf documents from my Intranet ASP.NET application. I am using the code listed below. The code works fine when run from a console or windows application but nothing happends (no...
1
by: Vinny Vinn | last post by:
I am using the following C# code to print a PDF to a network printer. The document prints in portrait mode, I would like the document to print in Landscape mode. Is there/What is the argument that...
0
by: Matt | last post by:
I am using Process.Start() and pdfp.exe to launch Adobe Reader to print PDFs directly from the server. My website's Application Pool runs under a domain account and I am having trouble getting the...
3
by: annoir | last post by:
I am trying to print PDF documents using the code below and I get the following error: "Object reference not set to an instance of an object." Am totally stumped. Can anybody help? I am...
2
by: Iain Wilson | last post by:
Hi Mike I have changed the code using Server.MapPath but to no avail. Prints the Adobe PDF document to the default local printer (I am running this localhost). I Have not run it on the server...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.