Help! AcroExchAVDoc.Open FileName, ""

Hello,
I use the below code to open the pdf files and print them out. It works well but I got a question here.
When I use it under the Excel 2003 in the office, the Adobe window pops up (PDF file really opens). When I run this code under Excel 2007, there is no such an issue.
I don't like the PDF file "really" opens as I have over 100 PDF files waiting for printing. All files opening will screw up my desktop.
Is there any way to  resolve this issue under Excel 2003. Don't tell me install the excel 2007 in the office, LOL!
Thanks!
Sub AcrobatPrint(FileName As String, PrintMode As String)
     Dim AcroExchApp As Acrobat.CAcroApp
     Dim AcroExchAVDoc As Acrobat.CAcroAVDoc
     Dim AcroExchPDDoc As Acrobat.CAcroPDDoc
     Dim num As Integer
     Set AcroExchApp = CreateObject("AcroExch.App")
     Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc")
     AcroExchAVDoc.Open FileName, ""
     Set AcroExchPDDoc = AcroExchAVDoc.GetPDDoc
     num = AcroExchPDDoc.GetNumPages - 1
     If PrintMode = "all" Then
          'Print all pages
           Call AcroExchAVDoc.PrintPages(0, num, 2, 1, 1)
     Else
               'Print first page
           Call AcroExchAVDoc.PrintPages(0, 0, 2, 1, 1)
     End If
End Sub

I figured it out!

Similar Messages

  • "Adobe Reader could not open 'filename.pdf' because it either...

    The full error message reads: "Abobe Reader could not open 'filename.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."
    I understand this is a common problem, but I have yet to see a clearly defined answer. I am running the latest update of Abobe Reader 9.3 on Windows 7. It didn't work on other updates either.
    I received the file as an e-mail attachment, along with some other PDFs. All of them can be opened except this one. I tried forwarding the e-mail to other servers (i.e. Hotmail) and I couldn't open it there either.
    I have tried opening it directly from the Adobe Reader program, latest version of IE, and latest version of Firefox. I have tried unchecking the "Display PDF in Browser" box under Edit > Preferences. I have tried changing the file name and adding ".pdf" to the end of it. Nothing works.
    The file says "27 KB" which sounds a little low to me since this should be a fair-sized document, but doesn't read "0 KB" as others with this problem have noted.
    Any help with this issue so this question can finally be resolved for the hundreds of people that have had this error message would be greatly appreciated.
    Thanks.

    brittnic2008 wrote:
     Any help with this issue so this question can finally be resolved for the hundreds of people that have had this error message would be greatly appreciated. 
    Thanks.
    There has been tons of help on this issue.
    The official word is, ZIP the PDF's before emailing or post them to a website and email a link to them. Some email clients use encoding (Adobe can't do anything about that part) and when the file is decoded at the other end, it is corrupted. It can happen to some of them or all of them.

  • Error "Could not open [filename]...Please upgrade your plug-ins

    A collegue send us an CS4 InDesign file and when I opened, it says this:
    Error "Could not open [filename]. Please upgrade your plug-ins to their latest versions or upgrade to the latest of Adobe InDesign."
    Any suggestion? I also have CS4 installed.

    I see. Thanks for the help. I just confirmed with the sender of this file and it seems that she has CS5 installed. So, I can that you're right that it's a CS5 file.
    Thanks, again.

  • Adobe Reader could not open 'filename.pdf'" because it is either not a supported file type...

    I have a website that holds 23 different PDF's. They all download fine and open correctly when downloading from a Mac computer. They even download and open fine from a Mobile Phone. However my client is getting an error over and over again. I have tested it out and this is what I have come up with.
    Error:
    Adobe Reader could not open 'filename.pdf'" because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded)
    I have resaved the PDF's to be compatible with Reader 6.
    Works fine with
    All Mac's using either Firefox, Chrome or Safari using Pro and Reader
    iPhone downloads using iBook
    PC's when downloading from Firefox viewing in Reader 9
    PC's when downloading from IE 6.0 view on Reader 8
    Error Message When
    PC when downloading from IE 7 viewing on Reeder 9
    PC when downloading from IE 8 viewing on Reader 9
    Here goes the URL when the files resides.
    Please help. I can not find a solution.

    Hi i have solved the ie bug creating the pdf phisically, this is the code i use:
    $hostname = "XXXXXX";
    $database = "XXXXX";
    $username = "XXXXX";
    $password = "XXXXXX";
    $db = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
    mysql_select_db($database, $db);
    $query_rs_docs = "SELECT * FROM doc WHERE doc_name='".$_GET['doc_name']."'";
    $rs_docs = mysql_query($query_rs_docs, $db) or die(mysql_error());
    $row_rs_docs = mysql_fetch_assoc($rs_docs);
    $totalRows_rs_docs = mysql_num_rows($rs_docs);
    $t_pdf = fopen("/path to doc folder/doc/".$row_rs_docs['doc_name'], "w+");
    fwrite($t_pdf, $row_rs_docs['doc_file']);
    fclose($t_pdf);
    header('Location: http://www.portalesardegna.com/doc/'.$row_rs_docs['doc_name']);
    the db table (doc_name must contain the .pdf extension):
    CREATE TABLE IF NOT EXISTS `doc` (
      `doc_ID` int(10) NOT NULL auto_increment,
      `doc_name` varchar(255) NOT NULL,
      `doc_file` longblob NOT NULL
      PRIMARY KEY  (`doc_ID`)
    ) ENGINE=MyISAM;
    Message was edited by: Portale Sardegna

  • Cannot open "filename.indd" in CS5.5

    Hey helpful people,
    I have a large 90pg project in indesign that was passed to me by a previous designer to be finished and edited. The file was last opened this past summer in CS5. I have since upgraded to CS5.5 and am now needing to finish this project. I tryed opening it for the first time the other day and InDesign said "Cannot open "filename.indd". Before I downloaded the lastest update to InDesign I attempted to open the file as a copy and InDesign said it Cannot open "filename.indd". The file "filename.indd" is damaged (Error code: 4). I've since downloaded the update but I still get the same results. The file size is 5.9 MB and I believe there is some place pdfs in it. Please tell me there is something I can do to fix this file!
    Thanks,
    Joey

    It's a valid InDesign CS5 file, technically there is nothing wrong with it.
    "Created on Macintosh 10.67 in app version 7.0.4.553 (InDesign Roman) build 553 on Tue Jun 14 18:37:58 2011
    Save As on Macintosh 10.67 in app version 7.0.4.553 (InDesign Roman) build 553 on Tue Jun 14 19:26:13 2011
    Most recent Save on Macintosh 10.68 in app version 7.0.4.553 (InDesign Roman) build 553 on Sat Jul 23 20:01:04 2011"
    Used fonts:
    Minion Pro
    Myriad Pro
    Kozuka Mincho Pro
    Linked files:
    AC_Project_Proposal.pdf
    AC_Project_Presentation.pdf
    AC_News_Writer.pdf
    AC_PressRelease_Writer.pdf
    AC_Broadcasters_Writer.pdf
    AC_GraphicD_Writer.pdf
    AC_WebD_Writer.pdf
    AC_Team_Scorecard.pdf
    Ag_Issues_Forum_pg40.pdf (this file seems to be on your desktop )
    Pages from cde_handbook-1.pdf (this one too)
    ag_issues_teampresentation.pdf (these all are)
    ag_issues_portfolio.pdf
    creed_speaking.pdf
    I cannot see anything suspicious in the font list (which are, alas, prime suspects). Next in line are then the linked files. Can you try moving *all* of the linked files out of InDesign's range and then open the file?

  • Need help to open and look for file by name

    Hi,
            Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
    How can i look for the file by his name ?
    Thx =)

    Hi ,
        Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
    The user ll type the serial that he wants delete ...
    I already figured out what i need guys .. thx for the help ^^
    I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
    Thx ^^

  • Context sensitive help not opening to bookmark (tough one)

    I have a Robohelp 9 HTML project with multiple topics. Each topic has multiple bookmarks. I have created a map file with mappings from a map id to a bookmark within a topic.
    An example of a map id is Change_SSN, the map # is 70, and this is mapped to a book mark.
    The .ali entry is <alias name="Change_SSN" link="Change_SSN\TCRS_Concord_Project_-_Change_SSN_User_Guide-FINAL.htm#3_Change_SSN">,
    BCCSDefault.h has this entry: #define Change_SSN 70
    whcsddata has this entry: SetCsh(15,"Change_SSN",70,"Change_SSN/TCRS_Concord_Project_-_Change_SSN_User_Guide-FINAL. htm#3_Change_SSN");
    I am using the standard RoboHelp_CSH.js file in my web application. Within that web application I call to RH_ShowHelp(0, <path to the index.htm file>,HH_HELP_CONTEXT,70). The help file will be displayed but it does not go directly to the book mark within the topic, instead the default topic is displayed. I have multiple topics and when the help file is displayed all topics are displayed in the TOC, the correct topic is not even opened let alone the bookmark within the appropriate topic.
    If I just open my browser and enter path/index.html#<id=70 again the help file is displayed but to the default topic. This leads me to believe there is not an issue with the coding of my web application but something odd with the help file.
    I have tried everything and I can not figure out why this is not working. Any help would be greatly appreciated.

    Hi,
    Is your help always opening the default topic regardless of whether you call a link to a bookmark or does it go to the default topic for every CSH call?
    Are you using local help or is it placed on a server?
    What browsers have you tried?
    If you enter the entire path with two pound signs in the address bar, do you then see the correct topic/bookmark location? (example: http://example.com/index.htm#Change_SSN/TCRS_Concord_Project_-_Change_S SN_User_Guide-FINAL.htm#3_Change_SSN)
    My first guess would be that you have to enable all map files for your output. But you seem to have done that as whcshdata contains information. *For anyone reading this thread: To enable CSH in WebHelp: Open your SSL, expand Content Categories, select the category and check the map files you want to use under Map files.
    Please answer the questions and we’ll dive some deeper.
    Greet,
    Willam

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Need Help in opening a Link or URL

    Hi,
    I need help in opening a URL (on the same server where CLM application is deployed). I have added a Button on ToolBar and added the code. but it's not working. the same java program is working on my local system. below is the code.
    import java.io.*;
    import java.util.*;
    public class FileOpen
           public static void main(String[] args)       
                 FileOpen deleteList = new FileOpen();
                 String url="http://www.google.com/";
                   try {
                        String[] cmd = new String[4];
                        cmd[0] = "cmd.exe";
                        cmd[1] = "/C";
                        cmd[2] = "start";
                        cmd[3] = "c:
    amd_SCCMLog.txt";
                        System.out.println(" cmd"+cmd);
                        Process p = Runtime.getRuntime().exec(cmd);
                        System.out.println(" cmd1"+cmd);
                        Process process = Runtime.getRuntime().exec("notepad");
                        System.out.println(" cmd2"+cmd);
                        } catch (IOException ioe)
                             ioe.printStackTrace();
                 //System.out.println("Memberfarm: " + memberFarm);       
    Regards,
    Puneet Aggarwal

    Hi Puneet,
    What exactly are you trying to do? Can you describe where in the system you are doing it? There are different options....
    What about a document report with a link to the Web site URL you want to open?
    What about a read-only URL field on the document, populated with the URL you want to open?
    What about the desktop links channel?
    Lots of different ways to skin that cat (sorry cat lovers) ..your code looks like it might be the most difficult approach.
    -Howie Wexler
    www.craftysystems.com

  • This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    Hi,
    You may need to design the site again in older version OR may be copy and paste in place from new to old except what is new in the latest version.
    Hope that helps!
    Kind Regards,

  • My iPad Air 16 gb wifi  not open and asking for an address and not mine and I am the owner of this device and I can not pave if there is a possibility of me to help me open it with my address as I opened before

    asking for an address and not mine and I am the owner of this device and I can not pave if there is a possibility of me to help me open it with my address as I opened before

    Read the following about, "Activation Lock".
    http://support.apple.com/kb/ht5818

  • Cannot open "filename" because it was saved with a newer version of Adobe InDesign CC (10.0).

    I updated my whole cloud last week. Now I can't open a InDesign document saved just the day before. I get the error message:
    Cannot open “filename” because it was saved with a newer version of Adobe InDesign CC (10.0).
    Cannot open “filename” because it was saved with a newer version of Adobe InDesign CC (10.0). You must use that version or later to open the file. To then enable it to be opened in this version, choose save as InDesign CS4 or later, or export to IDML.
    This is a document that I created in InDesign CC just last week.

    Hi Robert,
    To open an INDD file in the older version (CS4-CC), you need to save it as an IDML. For CS3 & older versions, save it as an INX.
    Thanks

  • InDesign CS3 Help Menu opens constantly

    The InDesign CS3 Help Menu opens constantly every time I click anywhere in a document to do anything.
    Such as draw a box, insert type, anything. It virtually renders the program unuseable. I click to make an addition to a doc, travel up to the help menu to close it, do my thing, then repeat for the next action. Reinstalling has not stopped this. I cannot disable the Help Menu (which would be a fine solution BTW). I cannot afford to upgrade to CS4 right now. I am not sure that would stop it anyway. Photoshop, Illustrator, no other program in the CS3 suite exhibits this behavior. Anybody got any ideas? I recently recreated my whole OS and all programs on a new hard drive out of necessity. InDesign was doing this before that rebuild, and it does it now (after the reinstall). CS3 was reinstalled clean. That did solve a serial # issue with Acrobat where it wouldn't launch. I didn't transfer anything from the old hard drive except e-mail and internet settings.
    Mac Pro Quad
    Leopard 10.5.7
    4 gigs ram
    2 terrabytes internal hard drive space (four drives).
    Thanks for any help in advance, I appreciate your time.
    Michael

    Are you using the default keyboard shortcut set or a custom one? Also, are you using any special mouse, keyboard or tablet input devices?
    Try going to Edit->Keyboard Shortcuts->Help menu Product Area and see what the default Help shortcut is. Perhaps it has been set to something crazy like "mouse click". You may just set the Keyboard Shortcuts back to [Default] set and see if that does the trick too.
    Alternatively, something either software or hardware related in your setup is frequently triggering that event, which may be the case if you have a non-apple kbd, mouse etc installed.

  • I have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed

    i have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed.
    when double clicking on the image it says unable to open and gives me the option to search the app store.
    any help would be much appreciated
    Adam

    Well, first, just make sure it's the Mac version and not the Windows version (which indeed would not run on your Mac). You say "Windows Office" which is why I mention it. I think you probably just mean "Microsoft Office" though.
    Next, is this on a disk (DVD), or did you purchase and download it from the Microsoft site?
    Matt

  • How To Make FCE Help/Manual Open In Preview Instead Of Adobe Reader ?

    A friend has FCE 2 and the Help Menu opens in Adobe Acrobat/Reader.
    How can he make Preview the default application ?
    Ian.

    http://www.fcpbook.com/Misc11.html

Maybe you are looking for

  • My mouse will not scroll down pages in Firefox 4 and up.

    The scroll wheel on the mouse no longer works in any version of Firefox from version 4 and up. None of the suggestions I have seen in responses to similar questions do not work. The only thing that works is to downgrade to version 3.6.20 or lower. I

  • NQUDMLExec throws end of file reached error

    Hi, I have tried to execute the below command in windows command line . [code] nQUDMLExec -U user -P pass -I test.cfg -B test.rpd -O C:\test.rpd[/code] My test.cfg contains some db credentials as repositary variable. it throws the below error always:

  • BW and RFC problem  -- Source system not created.

    Hi Friends, Before posting this post , i have searched so many posts and docs and but still got a problem in creation of R3 source sytem in BI7.0. Steps i followed in R3 are as follws: 1) created  alogical system for R3 and BI7.0 2)assigned this logi

  • Link doesn't refresh playlists

    Hi I have Link installed - the latest version.  When I go to WMP and add songs to a playlist, then open link to transfer that playlist to Z10, the Link version is not refreshed with the new songs???  Any ideas? AT&T Z10 (v10.1.0.2019)

  • Conversion cords for apple products from US to Ireland

    what type of conversion cords do I need for an Iphone (U.S) in Ireland?