473,320 Members | 1,978 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,320 software developers and data experts.

c# cannot hide acrobat reader as external program

Hi there!
I am building fdf files and i need to print them out.
The problem is that in order to print them i have to executeacrobat reader.
I am fine with it, but the problem is that i cannot hide thereader application, it always stays in the bottom bar.
The code i'm doing is the following:

string f_fdf = @"C:\PROJECTSdotNET\PDF_XML_PDF\PDFtoXML\chus.fdf" ;
Process p = new Process();
p.StartInfo.Arguments = " /h ";
p.StartInfo.FileName = f_fdf;
p.StartInfo.Verb = "Print";
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.Start();

The result is the same if I take out the "Arguments bit", or the"CreatenoWindow" or even the "windowstyle". Has anyone got anyidea why that is happening? Because everywhere the solutions isalways "CreateNoWindow=true" but it's not working to me. Isbecause of Acrobat reader?
I am using Windows XP.
Thank you very much in advance.

Chus
--------------------------------
From: Chus Chuscazo

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>hWoPj/k8WU+6Z8CNQm7Qwg==</Id>
Nov 16 '05 #1
1 3449
Chus Chuscazo via .NET 247 wrote:
The result is the same if I take out the "Arguments bit", or the
"CreatenoWindow" or even the "windowstyle". Has anyone got any idea
why that is happening? Because everywhere the solutions is always
"CreateNoWindow=true" but it's not working to me. Is because of
Acrobat reader? I am using Windows XP.


This feature MUST be supported by the starting app. If the app always want
to show his window he can do this... and just ignore the STARTUPTINFO.

You can try to find the window handle and then call Win32-Api "ShowWindow"
with SW_HIDE
--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp

Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
Nov 16 '05 #2

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

Similar topics

8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
2
by: jimfortune | last post by:
I have modified my GetAcroPath function to: Function GetAcroDir() As String Const LatestVer = 7 Dim strAcroDir(LatestVer - 2) As String Dim I As Integer strAcroDir(1) = "C:\Program...
0
by: Michael Strauch | last post by:
Hello, I am trying to use the Adobe Acrobat Reader ActiveX control in a C# program. Adding the control to my application works, calling LoadFile("<pdf filename>") seems to work, too, but when I...
3
by: sam | last post by:
Hi! This is sam.. I would like to know acrobat reader controls in vb. Is there any such(Acrobat reader) controls available in visual basic or third patry .. I need to use it in my project . Any...
4
by: William LaMartin | last post by:
I have a vb.net win form where I want to output some text to a printer. Everything works fine when printing to my laser or inkjet printers. However when I print to the Acrobat PDFWriter printer...
2
by: Khan | last post by:
Hi, I'm using acrobat reader contorl in my vb.net application to display pdf files. I'm using version 8.0 of acrobat, but if i run my application on other machine which has different version of...
5
by: CDMAPoster | last post by:
I have changed how I get the shell path for Acrobat Reader based on code posted by John deKrafft. Does anyone see any problems with this code running on various Windows OS's? '--Begin Module...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all people, everybody, We have multiple versions of Acrobat Reader from 5.x to 8.x, I want to create a method in C# or VB.NET to check to see if the registry key for the versions...
4
Eleven
by: Eleven | last post by:
Hi, Got a problem detecting if Acrobat Reader is installed on a machine, would really appreciate your help. I've got a PDF Report that I export to a directory then open it with Acrobat Reader....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.