Specify the output file path and print name when printing pages

hi,
how can i Specify the output pdf file path and print name when i am using the function PrintPagesSilent from AcroAVDoc Object.
My Code :-
Acrobat.AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
"temp");

Dear Irosenth,
i try with different format (doc, docx,  xls, jpg, bmp and txt) and it working successfully, but it give an random name for the file which saved in default folder for Adobe PDF print.
you can use the following function:
private void PrintPDF(string[] inputfilepath){
foreach (string path in inputfilepath){
Acrobat.
AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
"temp"); 
Boolean v = doc.PrintPagesSilent(0, ((Acrobat.AcroPDDoc)(doc.GetPDDoc())).GetNumPages() - 1, 0, 0, 1);doc.Close(1);
and calling it by the following code:
PrintPDF(System.IO.Directory.GetFiles("c:\\t\\printjob"));
copy all files that you want to convert in side the mentioned path and run it program, then check the defualt print path for Adobe PDF printer.
test it and reply me. thanks again

Similar Messages

  • How to specify the database file path when create FDM application

    Dear All,
    How to specify the database file path (MSSQL) when create FDM application?
    Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
    Thanks.

    Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
    Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question.

  • File Path and Name field does not display correct path

    We are using Crystal 2008 along with VS 2005. We embed the special "File Path and Name" field  inside our report and it displays the correct path when viewed inside Crystal reports:
    C:\Program Files\reports\Chart.rpt
    When run through the web and viewed in the DHTML viewer, the file name and path appear as follows:
    C:\Windows\TEMP\Chart {02152A43-3339-4C03-A50A-E281E1D391AF}.rpt
    How can this be corrected?
    Thanks in advance for any assistance.

    This is a known issue tracked under ADAPT0000962216. At this time I do not know when this will be resolved, however Service Pack 2 for CR 2008 is targeted to be released by September and this may contain the fix.
    Ludek

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • "File Path and Name" field not displaying correctly

    Post Author: DaveWoo
    CA Forum: General
    Hello,Here's my situation: I'm currently upgrading from Crystal Reports for Visual Studio .NET 2003 to Crystal Reports for Visual Studio 2005. I have several reports (programmatically generated using VB.NET) that use the "File Path and Name" special field. Now, in the old version of Crystal Reports (2003), the field properly displayed the original file path and name; however, in the new version (2005), the field displays as "C:\DOCUME1\Username\LOCALS1\Temp\Filename{F2459406-3719-4C8B-917C-4A7055A18C76}.tmp" - in other words, the location of the temporary .rpt file.How do I get the "File Path and Name" field to correctly display the path & name of the original file, like it did in the prior version?- Dave

    This is a known issue tracked under ADAPT0000962216. At this time I do not know when this will be resolved, however Service Pack 2 for CR 2008 is targeted to be released by September and this may contain the fix.
    Ludek

  • Find the SAP Script name for the Output type RD00 and Appli V3

    Hi Gurus,
    My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
    Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
    Regards
    paul

    Hi,
    The script Name is LB_BIL_INVOICE
    You can find byNACE>V3>Output Types>RD00-->Processing Routines
    In thje output type Press Change button and select New entries.
    Regards
    Sandipan
    Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM

  • Why the output file is so big?

    Dear All,
             I am trying to write some data to the binary file. But the output file is very big. When I write 1M*4kB ,the file will more than 20MB. I don't know why.
            This is my vi, Please help me to find the fault,OK? Thank you very much.
            Thanks.
    Attachments:
    question1.vi ‏105 KB

    It is NOT the same vi!!! You need to familiarize yourself with dataflow, LabVIEW does NOT execute left to right, any part can execute if all inputs have data.
    In your particular case, the "file info" will execute at the same time you are building the file path. In addition, you are measuring the size of the stripped path and not of the new file. Try execution highlighting!
    To fix your code:
    You need to get the "file info" from the path AFTER you add the new filename.
    Use the error cluster to enforce proper execution order as in my example. WIre the error out of "close" to the error in of "File info". Now the "File info" must wait until all inputs have data, which can only happen after "close" has completed.
    All clear?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SizeTest.vi ‏29 KB

  • Save the uploaded file in a different name ?

    Has anyone used the com.oreilly.MultipartRequest Class
    which is used to upload a file to a directory.I am able to that
    fine.I now need a way to save the uploaded file to a different name
    when it gets saved in its destination.I am not sure if com.oreilly.MultipartRequest class has a feature or not.Can
    anyone help me out of this please.

    you can create files with your own name.
    in temp directory, orielly package creates all the files you uploaded from the client.
    create FileInputStream of file you need , create FileOutputStream with your new name and write the content to it.
    here is some code,
    MultipartRequest multi = new MultipartRequest(req,tempUserFile.getAbsolutePath(),100*1024*1024); // current dir
              Enumeration files = multi.getFileNames(); // Collection of files
              // it sends to you with the form
              String fileName=null;
              String name =null;
              while(files.hasMoreElements())
                   name = (String)files.nextElement();
                   File f = multi.getFile(name);
                   fileName = multi.getFilesystemName(name);
                   FileInputStream fis = new FileInputStream(f);
    FileOutputStream fos = new FileOutputStream//create outputstreamwith your new name
    now dump contents of inputstream to outputstream.
    hope this helps.
    raheem

  • How to change the log file path in BEA tuxedo 6.5 client in Windows xp

    Hi,
    I am using BEA Tuxedo 6.5 client in windows xp.
    The log files are created in C:
    Kindly help me in changing the log file path and also i want to know where these configurations are set.
    Advance thanks !!!
    Regards
    Bunsim

    Hi Bunsim,
    ULOGPFX is an environment variable. Your client executable can set an environment variable as part of a startup script,
    it can be included in a file used by the client that is defined with WSENVFILE environment variable, it can be read in
    a file by the client executable after startup using the tuxreadenv() API, it can be set by the client using the tuxputenv() API,
    the profile for the user executing the client can have an environment variable defined, or the windows registry can include
    a definition for the environment variable(there is also an BEA applet on Windows for administration but I think not on client only installs).
    WSNADDR is an environment variable that defines the address of the workstation listener that the client will connect to.
    Look for where your client defines WSNADDR and add, or modify,the ULOGPFX definition to meet your needs.
    Regards,
    Bob

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • No printing :I can't print anymore, printing the same file with another programs is ok, printing form LR: Preparing  and Printing indicatorbar in the left hand upper corner are running, but no output at all rom my printer. I have been printing before. I u

    No printing :I can't print anymore, printing the same file with another program is ok, printing form LR (in the same system and printer of course :-) ): Preparing  and Printing indicatorbar in the left hand upper corner are running and completing, but no output at all to my printer. I have been printing before. Next I upgraded to LR5.7.1 but the problem stays. Perhaps some adjustment is changed by me unintentionally, but I have no idea. Does anybody know what to check? Printing to file is also strange,the canvas only seems to accept A4, and crops any image relative to that size, so a 10x15 cm print on 10 x 15 cm paper is cropped to 10x15/2. Anybody any idea? (system win 8.1 64, printer HP B8550)

    I accidentally solved my mystery.  For some reason it was set to "print to file".  I changed it to "printer" and now I am able to print.

  • How to get required tags and name spaces in the output File?

    Hello,
    I am doing IDOC to File sceanrio and I am able to get the file but the problem is that I am unable to get the required tag names. Out put file is having  ns0 ns1 and so on..
    Eg:
    ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CU_NET_WEIGHT</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>EAN_SKU</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CUPerCase</ns2:ID>
    and so on..
    Source structure is IDOC
    Target structure is External Defination imported with references.
    How can I get the output file with the exact namespaces and tags as imported through External Definations.
    Thanks in Advace.

    HI! Rajeev,
    I have gone through this forum and we having 100% same to same requirement here in my project.
    We want this at the top of the Output Payload..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SyncMaterialDefinition xmlns="http://www.siemens.com/ad/mes/b2mt-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bml="http://www.wbf.org/xml/b2mml-v02" xmlns:sit="http://www.siemens.com/ad/mes/b2mml-v02-SITExt-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oag="http://www.openapplications.org/oagis">
    - <oag:ApplicationArea>
    and also isome part of payload nstead of    ns0:  and ns1:
    we want it as below for some part of same output payload
    <oag:ApplicationArea>
    - <oag:Sender>
      <oag:LogicalId>SAP</oag:LogicalId>
      <oag:Component>PMConnector</oag:Component>
      <oag:ReferenceId />
      <oag:Confirmation>Always</oag:Confirmation>
      </oag:Sender>
      <oag:CreationDateTime>2009-06-14T22:23:29.42Z</oag:CreationDateTime>
    </bml:MaterialDefinitionProperty>
    - <bml:MaterialDefinitionProperty>
      <bml:ID>XXXXXXX</bml:ID>
    - <bml:Value>
      <bml:ValueString>0.0</bml:ValueString>
      <bml:DataType>string</bml:DataType>
      <bml:UnitOfMeasure>n/a</bml:UnitOfMeasure>
      <bml:Any />
      *</bml:*Value>
    Check the above code how we want but we are getting in normal way .
    Could you please review this and guide me in detailed way how to do in a step by step manner if possible by taking my above payload condition.
    Regards:
    Amar Srinivas Eli

  • Append a file with date and name in the output file

    I am running a script which produce an output in excel file, I would like the server name and the date in the output file,  Both the servername and date has declared at the beginning of the script as 
    $server = test1
    $date = Get-Date -uformat %Y-%m-%d
    I am able to append either server or date but not both. Could you please help me out on this.
    I would like the output file as '
    server_report_date.xls

    I got this working by 
    "C:\Aravind\Scripts\$server-"+"Report-" +"$Date"+".xls"
    Thanks!!

  • Define path in selection screen to write the output file to pres.  server

    Hi can anyone tell me how to declare a variable so that the user can specify his own path name in the selection screen to store the output file in the presentation server. and please tell me how to link up the output file to the selection screen specified path.
    thanks in advance.

    DATA: FILE_TAB TYPE STRING.
    SELECTION-SCREEN BEGIN OF BLOCK B02 WITH FRAME TITLE TEXT-B02.
    PARAMETERS:
               P_FILE TYPE RLGRAP-FILENAME OBLIGATORY LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B02.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM OPEN_FILE USING P_FILE.
    FORM OPEN_FILE USING L_FILE.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = L_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        SY-MSGTY = 'I'.
        MESSAGE ID     SY-MSGID
                TYPE   SY-MSGTY
                NUMBER SY-MSGNO
                WITH   SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        STOP.
      ENDIF.
    ENDFORM.
    FILE_TAB = P_FILE.
      CALL FUNCTION 'GUI_DOWNLOAD'
    *Complete the FM
    Greetings,
    Blag.

  • File Path and Name

    Hi everyone,
    I am scheduling reports in Crystal Reports Server.  My reports contain the "Special Field" File Path and Name.  However, when the report is sent out via CRS, it prints a different location of where the report actually resides.  In CRS, how can I make the file path and name field print the actual location of the report file rather than a rogue location?
    Thanks in advance,
    Zack H.

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

Maybe you are looking for

  • Regarding Background color change in OIM admin and user console

    Hi all, I tried to change the Background color and Text modification in Login Page,Register Page of OIM Adminstration and user console. As per the Oracle® Fusion Middleware Developer's Guide for Oracle Identity Manager 11g guide i did Style Sheet Mod

  • Flex to AS3 swf

    I want to get swf files I have produced in Flash Builder 4.5 into Prezi. They require what they are calling an "AS3 SWF" file for loading. My SWF from FB is not making the trip. Any ideas as to how I can get my FB swf to be/look like an AS3 swf? Than

  • No S.M.A.R.T. diagnostics on Maxtor 7Y250M0???

    Hi, I have an iMac G5 from the fall of 2004 that refuses to boot from the internal hard drive. There's no S.M.A.R.T. status in the Disk Utility. Disk Warrior also reports no S.M.A.R.T. capability in the drive. Disk Warrior also hangs up and reports a

  • Mac Pro can only be booted into safe mode

    Hi All This morning when I booted my Mac Pro 2009 running 10.6.8, it booted but with this error window on the desktop - The System Extension "/System/LibraryExtensions/IOStorageFamily.kext" was installed improperly and cannot be used. Please try rein

  • Forcing logonui to reenumerate credential providers

    I am trying to determine if there is an accepted method to get logonui to reenumerate the available credential providers.  The scenario I am trying to address is if a new credential provider is installed on a system when logonui is active.  In thi