Programmat​icly name the PDF from report generator

Hi,
I'm currently developing an application that contains report generation.
Using report generation pallet I was able to make PDFs but the problem is that a dialog box appears asking me to give a name to the PDF.
Since the application will be running all the year generating weekly reports I need to make automatis naming for the PDFs because I don't have all the Time operator to name the file.
Thanks in advance
Tareq Al-Arja

I'm assuming that the method you are using to create PDF reports is to "print" them to a PDF writer. In this case, it is an issue that resides outside of LabVIEW. LabVIEW simply sends the document to the PDF "printer" and it is actually the PDF Writer that is querying you for the name. Since most printers don't require you to name files that you print, LabVIEW does not provide any way of sending this information programmatically.
If automation of those PDF names is imperative, you might be able to build PDF documents through ActiveX with Adobe and programmatically provide PDF names that way, but from my experience, Adobe does a pretty poor job of documenting their ActiveX functions. However, it may be something worth exploring if the issue is important to you.
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments

Similar Messages

  • Name the PDF file with a field name

    Hi,
    I'm new to ES2 and Form creation in LiveCycle, my knowledge in scripts is very less or none i can say, if any one out there could help me out with this i'd be greateful.
    I have created a fillable PDF Form using LivecCycle ES2 and would like to know how to name the PDF file with a field value from the form when " save form " or " submit " button are clicked.
    Thanks in advance.
    Mithun.M.I

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

  • Correct pdf from report 9i

    Wanted know as it is correct to get pdf from reports 9i. I necessary to get the report with Cyrillic symbol. Use section [ PDF:Embed ] beside me was not got. I have taken Type1 font from resource Acrobat reader 5.0, made sure by means of program fontview.exe from supply Windows that this font contains Cyrillic symbols, has described his use: "Courier New" = "COM_____.pfm COM_____.pfb". As a result pdf file was got with embedded font, but Cyrillic symbols are don't care displayed not correct. When use [ PDF:Subset ] is got correct displayed pdf, but with use font Type3 that on my not quite well.
    Thanks.

    Hi,
    Using PDF embeding with Type1 fonts will not give you the symbol as the Type1 fonts have characters only upto 256. The way to get the Cyrillic symbols properly is to use PDF subsetting. You need to use either UTF8 or any Cyrillic charcater set and use True Type fonts. Add proper entried to uifont.ali for subsetting. An example would be to add, "courier = courier.ttf". The ttf files location should be included in Reports path. Internaly when doing PDf subsetting, these are converted to Type3 fonts so you will always get that. It works properly with Acrobat reader 5.0 for displaying and printing purpose.
    Hope this helps!
    Thanks,
    Rohit

  • 0ADHOC error while executing the query from Report Designer

    Hi All,
    When I am executing The Query from Report Designer,  am getting the below error.
    Please help me in this regard.
    The initial exception that caused the request to fail was:
    The Web template "0ADHOC" does not exist in the master system
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: The Web template "0ADHOC" does not exist in the master system
    at com.sap.ip.bi.webapplications.runtime.service.template.impl.TemplateService.getTemplateContent(TemplateService.java:57)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.service.template.PortalTemplateAccessService.getTemplateContent(PortalTemplateAccessService.java:82)
    at com.sap.ip.bi.webapplications.runtime.preprocessor.Preprocessor.parseTemplate(Preprocessor.java:163)
    at com.sap.ip.bi.webapplications.runtime.xml.XmlTemplateAssembler.doInit(XmlTemplateAssembler.java:79)
    at com.sap.ip.bi.webapplications.runtime.template.TemplateAssembler.init(TemplateAssembler.java:133)
    Thanks,
    KVR

    Hi,
    The web template 0ADHOC is usually the standard web template for 3.x queries. The Report Designer executes the reports in java web, thus tries to find the template 0ADHOC in the 7.0 templates and does not find it. Check whether you have maintained the standard web template 0ADHOC for 7.0 reports also:
    Transaktion SPRO -> SAP Reference Image -> SAP NetWeaver -> Business Intelligence -> Settings for Reporting and Analysis -> Bex Web -> Set Standard Web Templates
    Best regards,
    Janine

  • Is there any way to name the records from a data merge?

    I have a spreadsheet, that has all the names for the images I'm using for a data merge. What I want to do is name the resulting records after the filenames in one of the columns in the spreadsheet. Is there anyway to do this? Or is there some other way to individually name the records from a data merge? I don't have any scripting prowess, so I can't really mess with that. Any help is greatly appreciated! Thanks!

    You merge it along with the others, just like any field. ID cannot do the naming for you during the merge, but most spreadsheets have lots of logic capabilities that should allow you to extract a name for the record from the filename in the column of your choice. The only reason ID knows to find the image instead of writing the filename is that you've used a special name for the field.

  • Export the pdf from indesign some error Pop Up window (Failed to Export the PDF file). How slove the

    Export the pdf from indesign some error Pop Up window (Failed to Export the PDF file). How slove the problem
    Please some one help on this

    You need to try exporting the first half of the book.
    If that exports ok then export the other half of the book.
    Whatever half it fails on - keep dividing the book in half to find the culprit page or pages.
    For example if your book is 128 pages long:
    1. Export pages 1 - 63
    2. If these Fail to Export then
    3. try exporting1-32
    4. If these Fail to Export
    5. then try exporting1-16
    If it doesn't fail (step 2)
    Then export pages 64-128
    and 64-90 etc.
    until you find the pages causing the issues.

  • Pdf from reports 9i

    Why if reference in sections [ PDF:Subset ] some font, for instance: Arial..... = "arial.ttf" then in file PDF this font is got more fat?

    This is a new feature in 9i - "Font Subsetting".
    You have to use [ PDF:Subset ] section in uifont.ali to specify this. This is supported for true type fonts.
    For example,
    Arial = "Arial.ttf"
    When you generate the output to PDF, the subset of the font information(for the characters used in the report alone )is embedded in the PDF document itself.
    This makes your PDF document fully portable and gives a standard look and feel. There is no need of having the fonts installed in the machine where this PDF document is being viewed.
    As some font information is embedded into the PDF output, the resulting PDF looks slightly bigger. Anyhow, by default the PDF output from Reports9i is compressed (you can use PDFCOMP to control this).
    Please see http://otn.oracle.com/products/reports/content.html to know more about these new features.
    Regards,
    Siva B

  • Trying to move from reports generated in CGI mode to reports generated in S

    This is on 9iAS R1 patch 15 running on Sun
    We are calling all out reports from forms.
    We already have a number of forms that call reports that are using the
    reports servlet. All the reports come out in pdf format. Basical there are a
    number of set_report_object_property calls then a run_report_object call.
    Additionally in the env file set by forms_web_cfg file we have a var of
    FORMS60_REPFORMAT=pdf
    We have been using the CGI report server to generate tab delimited files one
    could bring into Excel. I'm having problems getting a different file other
    than a pdf to be generated. I'm I stuck due to the FORMS60_REPFORMAT=pdf
    var? How can I override this for a tab delimited file?
    I think my problem is with the REPORT_DESTYPE
    here is part of the code from the form (which does not work):
    IF P_FOR_EXCEL = 'Y' THEN -- Generate Excel Sheet
    l_rep_obj_id := find_report_object ( 'QMSREP' );
    set_report_object_property(l_rep_obj_id, REPORT_DESTYPE, FILE);
    set_report_object_property(l_rep_obj_id, REPORT_DESNAME, user ||
    to_char(sysdate,'DDMMYYYYHH24MISS') || '.xls' );
    set_report_object_property(l_rep_obj_id, REPORT_DESFORMAT, 'DELIMITED' );
    set_report_object_property(l_rep_obj_id, REPORT_OTHER, ' DELIMITER=tab' || '
    DELIMITED_HDR=no');
    set_report_object_property(l_rep_obj_id, REPORT_EXECUTION_MODE, RUNTIME );
    set_report_object_property(l_rep_obj_id, REPORT_COMM_MODE, SYNCHRONOUS );
    set_report_object_property(l_rep_obj_id, REPORT_FILENAME, l_report_name );
    -- qms$forms_errors.push ( 'Call_Report: Client/Server: Report and display
    in Excel' );
    l_rep_id := RUN_REPORT_OBJECT(l_rep_obj_id, l_par_list_id);
    ELSE -- Generate PDF Report
    l_rep_obj_id := find_report_object ( 'QMSREP' );
    set_report_object_property(l_rep_obj_id, REPORT_EXECUTION_MODE, RUNTIME );
    set_report_object_property(l_rep_obj_id, REPORT_COMM_MODE, SYNCHRONOUS );
    set_report_object_property(l_rep_obj_id, REPORT_FILENAME, l_report_name );
    set_report_object_property(l_rep_obj_id, REPORT_DESTYPE, PREVIEW);
    l_rep_id := RUN_REPORT_OBJECT(l_rep_obj_id, l_par_list_id);
    END IF;
    My question is what do I need to do to generate tab delimited files using
    the reports servlet without breaking the pdf's or changing the forms_web.cfg
    file?
    Thanks very much

    I ran into an issue using delimiteddata using the CGI reports server. For some reason I was getting a couple of extra columns in the spreadsheet. Did you run into that? What did you do to fix it?

  • How to find the class name, the location from where it invoked a method

    Hi,
    I have a class A. The caller calls A.someMethod(), whenever this method is invoked, I want to find out the caller info, which class invoked this method, from where this class was loaded (may be the jar file name). Any help will be appreciated.
    Thanks.

    However since version 1.4 there is an easier way to extract that information from the Throwable:
    java.lang.Throwable
    public StackTraceElement[] getStackTrace()
    Provides programmatic access to the stack trace information printed by printStackTrace(). Returns an array of stack trace elements, each representing one stack frame.

  • Problem Exporting to PDF from Report Designer 2008

    When I export my report from Report Designer unless I deselect the "Create Bookmarks from group tree" I get the following error:  "Failed to export the report"  If I deselect the option It will successfully create the PDF.
    I am running Crystal Reports 2008 with service pack 2.  I also have Microsoft Visual Studio 2008 loaded on the machine.

    You should start debugging by removing parts of the report to determine what is causing the problem. Once you find that part then re-post with a question on how to work around the problem.

  • Printing PDF from Report Region - Header Details

    Hi,
    I've searched around for a while but was unable to find an answer to my query.
    I have a simple report region, which i added a "Print" link to the bottom of - this brings up a formatted PDF version of the report which can be printed out, i'm just using the default PDF layout.
    When it comes to adding a header and footer the PDF still functions ok, but when i try to add any page items it all stops working.
    I basically need the time and date to appear at the top of the report, i created a hidden field just using the PL/SQL command "SYSDATE" which does return the correct value. But when i try to add this to the header or footer in the format "This document was printed on &P1_DATE", the PDF doesn't work, and when i try to download it, IE says the filesize is 0b.
    Any suggestions would be appreciated, either something i've done wrong or if there is a better method,
    Thanks in advance

    Thanks for the reply Scott,
    The PDF does download when I put a fullstop after the name of the item. Unfortunatly now the PDF displays as if the item "P1_DATE" is empty, i.e. it says "This document was printed on ",
    I've made P1_DATE visible and it definitly displays a date, yet the exported PDF displays nothing where P1_DATE is referenced,
    Just to confirm:
    The Item is called P1_DATE
    The references i've tried are &P1_DATE. and &P1_DATE
    the date is populated by the code SYSDATE
    Thanks again,
    Iain.

  • How can i trigger the workflow from REPORT

    hi,
      my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
    how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
    pls let me know.
    pls give any documentation if you have.
    thanks & Regards
    Sankar.

    Hi,
    Workflow container
      swc_container        lt_container.
      swc_create_container lt_container.
      swc_set_table lt_container '<cont_name>' lit_int_tab.
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = lc_objtyp
          objkey            = lv_objkey
          event             = lc_event_name
        IMPORTING
          event_id          = lv_eventid
        TABLES
          event_container   = lt_container
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        yv_err_flg = gc_true.
        EXIT.
      ENDIF.
    Rgds,
    Prakash

  • Export to PDF from reports page

    I have a report saved in .tdr format that contains multiple pages.  When I try to export to PDF, it only exports the first page of the 7 that are contained in the report view.  The only way I can seem to get all the pages exported to PDF format in a single file is to use the script command PicPDFExport call.  It does not seem like you should have to use a script to export multi page reports from within the report view. 
    Does anyone know how you can export all the pages into a single pdf file without using the script command? (i.e. why does selecting File->PDF Export only export the first page from the report view screen?)

    Jervin
    I am using version 10.2 and yes when I stated mulitple pages, I did mean sheets. 
    I did notice this morning that if I dont have any of my data loaded (i.e. report contents empty) and I select the File->PDF Export, then it appears to export all sheets to the pdf.  However, if I load my data and then refresh the report and re-try to perform the export function, then it only exports the first sheet.
    Not sure why having data loaded or not makes a difference so I have attached both the .tdr report and .tdm/.tdx data so if you could investigate why this is occurring I would appreciated it.  Also, as I mentioned before if I use the script command  PicPDFExport then it appears to export all the sheets but I dont believe I should have to use a script command to perform this function when a menu option is available.
    Attachments:
    Coolant1.zip ‏3671 KB

  • Problems printing PDF from Reports

    Hi,
    I'm having a problem with the Report's way of generating pdf-documents.
    The report that Reports was supposed to create have some bullets where but when Reports converts the document to pdf it sometimes insert asterisks instead of bullets...but only sometimes. At other times the bullets are substituted with | signs ???
    When I open the file with Acrobat reader, you can see the asterisks (sometimes) and (sometimes) the bullets, so I don't think that it is Acrobat.
    How do I get it to print bullets every time?
    Can it be something with fonts ?
    All help is appriaciated very much as I'm going crazy soon :P
    mvh Christian

    Hi Christian,
    I have a similar problem with Report 10g R1. We have a Report which contains a lot of informations, so all field have the little size they can (on report builder). Some times, the report is ok, but some times, informations are replaced by '*'. Report replace characters by '*' when there is not enough place !!!
    If I compare a good and a bad report, I can see that the text has not exactly the same size !!! And I can see in the PDF (open with text editor) that there are some differences...
    I have an open tar on metalink, but no solution for the moment...
    Another thing, this occurs on our 3 production servers but not on our development server...

  • How can I change the file version for scanned PDFs to 1.4 when using the "PDF from Scanner" feature from Acrobat XI? By default it's always saved as 1.5.

    Because our IT system can only handle PDFs with versions up to 1.4, we need to "PDF from scanner" feature to store the scanned PDFs in version 1.4.
    Acrobat 9 always saved it in 1.4, but starting with Acrobat X, the PDFs are saved in 1.5.
    There must be a setting or configuration somewhere where I can change this.
    I already tried modifying the distiller's standard joboptions, but that did not work.
    Thanks for any help

    We use in our software an open-source pdf library that only supports pdf versions up to 1.4. I know it is old, but it's not that simple to exchange it.
    But I just had a look into the Actions as you suggested. This way I get it to work. It costs one additional click, so that's acceptable.
    Thanks for the support.

Maybe you are looking for

  • Evaluate is not working for my custom function

    Hello everyone , I have a function , here's the code CREATE OR REPLACE FUNCTION FU_BUSCA_RECD_PRDC_OBIEE(NIVEL   VARCHAR,                                                     NM_AGPM VARCHAR) RETURN NUMBER AS   V_RECD_PRDC NUMBER(10); BEGIN   IF NIVEL

  • Hi guru's what is the upgradation in abap

    1) what is upgradation in abap.please explain me. Moderator message - Please ask a specific question - post locked Edited by: Rob Burbank on May 15, 2009 11:38 AM

  • Access ABAP tables using NWDS Java Code

    All, I am planning to write a program to autmatically update is_url entries in sxmb_admin using a Java program. Is there a way we can access the ABAP tables using standalone Java Code? would it something like dblookup that we use in the mappings? You

  • Extrating XML whilst using group by: ORA-22806

    Hi, Can anyone tell me why this works: select media_id, count(*) from ( select m.media_id, m.mediadata.extract('//med:caption/text()|//med:title/text()').getStringVal() AS title_caption from media m where m.media_id = 3208 group by media_id; and this

  • Jsp:plugin jre version

    I am using jsp:plugin tag to put my applet in jsp. The default jre verion of the jsp:plugin is 1.2. I want users to use jre 1.4. How can I wite the attribute for the tag? <jsp:plugin type="applet" code="mypackage.MyApplet" //any other attribute I sho