PC Review


Reply
Thread Tools Rate Thread

c# cannot hide acrobat reader as external program

 
 
Chus Chuscazo via .NET 247
Guest
Posts: n/a
 
      4th May 2004
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>
 
Reply With Quote
 
 
 
 
Jochen Kalmbach
Guest
Posts: n/a
 
      4th May 2004
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/
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading from Acrobat Reader 6 to Acrobat Reader 7 via Active Directory Sander Peters Microsoft Windows 2000 Active Directory 0 21st Apr 2006 07:57 AM
Acrobat Reader 7.0 - Acrobat Reader for Linux and other unices. Gordon Darling Freeware 0 15th Mar 2005 09:56 PM
how to get XP IE to use acrobat reader instead of Acrobat program Estrace Windows XP Basics 2 1st Aug 2004 06:14 PM
Acrobat Reader 5.0.9 - Acrobat reader for linux and other unices Gordon Darling Freeware 0 24th Jun 2004 07:58 PM
How To Open PDF in Acrobat Reader Instead of Full Acrobat Stever Windows XP Internet Explorer 2 19th Jan 2004 12:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 AM.