"save report to file"

I wish to use the "save report to file" function to save to a network, but if the network is not available (error code 6) then I wish to save the file locally on my C: drive. How can I capture this 'error code 6' before it happens and then divert the file to the local drive instead without any pop-up's?

Hi Steve,
I have been looking into your issues for you. Firstly, I must advise that either of the recommendations on this page are perfectly valid methods for achieving your desired results. The Check if File or Folder Exists VI could be used to determine whether a specific path on the network exists which will output a Boolean which indicates the outcome. This Boolean can then be used to select which path to save the file to using a case structure. A very simple example of this has been attached below. This approach would ensure that the error would never occur therefore eradicating your error pop-up issue.
For this particular instance I would recommend using the above method, though for more complex applications it may be worth adopting a more sophisticated manual error handling strategy rather than automatic error handling that is used by default.  For more information on this, see the following document.
Handling Errors
http://zone.ni.com/reference/en-XX/help/371361F-01/lvconcepts/error_checking_and_error_handling/
I hope this helps but let me know if you require further assistance.
Christian Hartshorne
Applications Engineer
National Instruments
Attachments:
Check if File Folder Exists Example.vi ‏7 KB

Similar Messages

  • Report generation vi's-save report to file.vi

    I am a new user of LabVIEW. I'm using the Report Generation Toolkit VI's to do some customized reports.
    1. how can I stop the report from popping up on the front panel when I initialize the report to be done. I know you can use "minimized" but that takes a few seconds to minimize and I would like to NOT see the report I'm generating pop-up at all.
    2. I want use this customized report and constantly be saving data when a reset button is pushed. That is save the time stamp, the change in data etc on a continuous basis in 1 folder. Right now when I use the "Save Report to File. Vi" it over writes the previous data saved and all that data is lost. I need to be constantly saving all the data generated to be able to look back at it.
    Thanks.

    Hi shaef,
    Which version of LV and Report Generation Toolkit are you using?
    Assuming you are using LV 8.5 and RGT 1.1.2, then the attached screenshot should offer some help.  Basically, you need to wire in the existing file as your template in order to not just overwrite the old data.  You also need to make use of the series of 'Append' VIs that are in the toolkit.
    Let us know if this works for you,
    David_B
    Applications Engineer
    National Instruments
    Attachments:
    2008-03-23_165242.png ‏5 KB

  • How to use active X controls to read/write protect an excel or word document created by created by Save Report to File VI

    Hi all,
    I'm trying to creat a word and excel documents using Save Report to File VI. When wiring a password to this last VI, the document created are only protected against writing but not reading. How can I use active X controls to password protect these documents against reading?
    Thanks a bunch!
    O

    There is no predefined functionality available in LabVIEW. So you have to implement this on your own.
    It seems to me that you own the Office Report Generation Toolkit. You can use the Excel Get ActiveX References.vi from the Excel Specific >> Advanced palette to get access to the "generic" ActiveX Excel references. Starting from this point, you can use property and invoke nodes to get to the setting you are going to modify.
    Please refer to this link for information on Excel password protection. I have not searched for the object giving you access to those settings though....
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Save Report to File.vi closing file problems

    I have a while loop running in which I generate data. At the end of a sequence in the while loop, I create an HTML report and save the report file to disk. My problem is that the next time the while loop generates data and goes to save the new HTML report, I get a file permission error (Error 8) in the delete file subvi. I use the delete file subvi so that I can programmatically replace the HTML report file. I believe that the problem is in the "Save Report to File.vi" in that it does not close the file after it writes it. Any comments?

    Unfortunately i couldn't open your example as i only have LV 6.0, but i looked at the 'Save report to File.vi' in LV 6.0 and it basically only contains a 'Write characters to file.vi' for file handling. In LV 6.0 this vi does contain a 'Close file+.vi' which has an input called 'close when? (now:T)'. Make sure this is wired as True (default) and the file will close, and you should be able to delete the file (as long as the delete event occurs afterwards (make sure it is wired in sequence). In the LV help, it says the reason for the 'Write characters to file.vi' only closing if you tell it to (set as default) or if there is an error is so you can continually use it in a loop, writing characters to file, without closing, and then send a command to close
    it only on the last loop, or if there is an error. Therefore i dont think it is a bug, but i think there should be a wire for it on the 'Write characters to file.vi'.
    I hope this helps you..
    Kim

  • Open , modify univ. connexion, save report (.rep file) in JSP or JAVA

    <p>Hi,</p><p> </p><p>I need, in the portal, loading all reports for changing the universe connexion (Name by Name-C2).</p><p>If i need to change by hands, i need big time.</p><p>I don&#39;t want used the "desktop intelligence" because the user don&#39;t have this tools.</p><p> </p><p>Now, it&#39;s possible to open, modify and save a report in JAVA or JSP ? </p><p> </p><p>thank you,</p><p>gilles </p>

    Hi Gilles,Â
    For .rep (Desktop Intelligence) files user should have the tool to author these. So I'm not sure I understand what you mean by:
    bq. I don't want used the "desktop intelligence" because the user don't have this tools
    Â In any case, here is the answer to your question:Â
    For Desktop Intelligence documents (.rep) you can use Desktop Intelligence COM Automation SDK (installed together with GUI product).. (DataProvider.ChangeUniverse())
    For a Web Intelligence (.wid) you can use Report Engine Java SDK .
    François Imberton

  • How to prevent the 'Save [html] Report to File' from overwriting an existing file.

    Using LabVIEW 2011 on Windows XP, SP3.
    I am trying to use the Save Report to File vi, specifically a html report.
    It allows replace and create file.
    In my application, I would like to create or open the file. When I try to edit to include those options
    and save the vi something breaks as it appears to be an OOP vi.
    How can I perform this functionality?
    Thanks,
    Steve Scoppettuolo

    Wait, what do you mean you try to "edit to include those options"? Are you actually modifying a core LabVIEW VI? If you are STOP. NEVER modify VIs shipped with LabVIEW.
    Your question is fundamentally not clear. Why do you want to open the file if you're trying to save the report? Are you trying to append to an existing report? If so, the New Report VI has a "template" input. If you specify an existing report file it will be opened for editing. Please review the documentation on the report VIs.

  • Error -2147352567 when using Save Report vi

    Hi,
    I'm developing an end of line test bench software for a firm. Things were going fine till I came across an unexpected error which I fail to comprehend. My code runs a motor simulation and saves the data in two separate excel files. When I have the path disconnected from the Save Report to File.vi (screenshot 1), my program runs smoothly and saves one of the files and returns an error due to the Save Report vi being disconnected (as expected). But when I connect the path to the Save Report to File.vi, I get an error -2147352567 (screenshot 2) at an append table to report.vi elsewhere in the code, which worked perfectly fine before the path was connected to the Save Report vi. Also, now the second excel file gets saved because its path has been connected. I cannot understand what the issue is. I could not find any source that gave me a reasonable fix to the problem either. I have been using Labview for less than 2 weeks, so forgive me if I have overlooked anything.
    Solved!
    Go to Solution.

    Hi DPac,
    Apologies for the confusion in the earlier post, thank you very much for clearing it up.
    Following my last post; the error was due to a race condition. There was no data flow used between the two separate report files being written. This means that LabVIEW will try to perform the two bits of code in parallel. However, this was occasionally causing one of the sub-vis to be called by the two different parts of code at the same time, which was causing the error.
    This is why the code would run without the above error if you disconnected the path to the first "Save Report to File.vi", as this part of the code wasn't running, allowing the second part to run freely.
    To counteract this I simply wired the "error out" terminal of the "Save Report to File.vi" (the one which used All_Saved.xlsx) into the "error in" terminal of the "New Report.vi" (the one which used Template.xlsx). Because VIs cannot operate until all inputs are filled, this forces the writing of the first report to occur before the writing of the second report, not at the same time.
    I have attached the revised version of "EOL_V1.vi" where you will be able to see the how I have wired the errors to force execution.
    I also noticed that you have not initialised your "set speed" shift register. This means that each time you run the program it will retain the last value from the previous run. Is this intentional? This means that your spreadsheet does not update correctly if you were to run the program twice in a row.
    Thank you,
    Eden S
    Applications Engineer
    National Instruments UK & Ireland

  • Save report vi saves all excel workbook pages to HTML

    Hello,
    I am using the Save Report to File VI to save an Excel workbook, and then to save the open Excel file to HTML. However, it is saving all the pages of the workbook in such a way that the web browser can access all the sheets of the workbook. I only want the active sheet saved. How do I do this?

    I'm honestly not sure how to get which page is "active". I imagine there is a property you can find (either via ActiveX, Properties Nodes or some other means) which will tell you an index that is active then you can customize your report around that. Could you attach what you have now and maybe I can look for a way to do it?

  • 10g Report to file causes unix permission problems

    I'm in the process of testing out one of the new options of 10g reports to have a report run from the command line and have the results file sent to a Unix directory for further use.
    Here is a sample of my run:
    http://myserver:port/reports/rwservlet?server=myreport_server+report=myreport.rep+userid=userid/pswd/@db+desformat=pdf+destype=file+desname=/tmp/my_report.pdf
    The results I see in the Unix directory are:
    rw-r--- 1 oracle dba my_report.pdf
    With the Unix permission set to 640, how does a user outside of the owner or group read this file. Is there a setting in a 10g environment variable somewhere to set the permissions to 644 so others can read the file?
    Thanks,
    Tom Vereecke

    Unfortunately i couldn't open your example as i only have LV 6.0, but i looked at the 'Save report to File.vi' in LV 6.0 and it basically only contains a 'Write characters to file.vi' for file handling. In LV 6.0 this vi does contain a 'Close file+.vi' which has an input called 'close when? (now:T)'. Make sure this is wired as True (default) and the file will close, and you should be able to delete the file (as long as the delete event occurs afterwards (make sure it is wired in sequence). In the LV help, it says the reason for the 'Write characters to file.vi' only closing if you tell it to (set as default) or if there is an error is so you can continually use it in a loop, writing characters to file, without closing, and then send a command to close
    it only on the last loop, or if there is an error. Therefore i dont think it is a bug, but i think there should be a wire for it on the 'Write characters to file.vi'.
    I hope this helps you..
    Kim

  • No column heading in second page in alv report when save in excel file

    Hi Expert,
    How can i remove the column header from Alv report when program execute in background and save in excel file right now
    its comming column header in each page. Client dont want header column in excel from second page. is this possible?
    with regards
    chandan_viji

    Hi Ravi,
    thanks for reply i have solved this problm throug line count and NEW-PAGE LINE COUNT 10000 bcoz client want output in excel file only one page header.
    with regards
    chandan_viji

  • How do I save a Report to file using Report Generation vi's?(not HTML)

    Hi,
    Sorry about re-stating the problem.   I am using the Report Generation vi's to create a report. There is an option to save HTML reports to file, however I must use Standard Report because I need to print in Landscape mode. HTML reports will not print in Landscape. One of the requirements is to save the report to file on the hard disk. I have tried to use the standard Open File and Write File vi's. A file is created, but the report is not saved into the file. How do I connect a report so that it will be saved in the file? I already tried simply wiring the report refnum into the data input of the Write File vi.
    I have attached an example of my code.
    I am using V7.1 Full Version.  I have V8 available if that is any help.
    Any ideas?
    Thanks,
    Chris
    Attachments:
    ReportExample.vi ‏52 KB

    I did find this KB: How to Save Standard Reports?
    Attached is an example of how to do this.  You will have to relink the subVI's or else you will have a broken arrow. One is in LV7 and the other is in LV8
    Message Edited by Sam R on 12-15-2005 02:25 PM
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    Standard_to_HTML_LV70.zip ‏23 KB
    Standard_to_HTML_LV80.zip ‏29 KB

  • When I save a PDF report the file name is xdo instead of "report name.pdf"

    Hi,
    I started a new project with BI Publisher integrated with OBIEE, I builded a set of reports that are working properly (these are the first reports on this OBIEE/BIP server)
    Accessing Oracle BI Cataloge I can run the reports and change the output format to pdf.
    when I press the right mouse button and select "save as" a dialog box appears.
    On the "File name" field, the default name that BIP writes is "xdo" I would like it to be the "name of the report.pdf".
    It seems that if I create a new report the file name is correct but if I change the name of the report then BIP always selects XDO as the default file name.
    Is there any place where I can configure the default name.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • Save a attachment file in the shared folder of receiver using ABAP report

    Hi all
    Is it possible to save an attachment file in the folder of receiver's desktop using ABAP report?
    I am using the standard mail sending code to mail the excel file as an attachment.
    Consumer wants that file to be stored automatically in the folder of a shared drive he is using.
    Is it possible?

    You can do that via class CL_GUI_FRONTEND_SERVICES method gui_download. But this is not working in background. Reports running in background cant reach presentation servers.
    If you have XI/PI in place you can set up a scenario for that.

  • How to forbidden to save report in Excel files

    Hi,
    I use Edge BO 3.0.
    In WEB Intelligence report, is it possible to forbiden to users to save data in an excel file ?
    I created an acces level and I denied for Webi report the rules :
    Export the report data
    save as Excel files
    save as CSV files
    I just allow users to save as PDF files.
    I created a group and give this acces level to this group for Web Intelligence application.
    But my users can allways save data in Excel files...
    What's wrong ?
        Thank you
             Michel  (from FRANCE)

    Hi,
    Following solution might help you to resolve the issue.
    In BusinessObjects Enterprise XI, users can save Web Intelligence reports as portable document format (PDF), Excel, comma-separated value (CSV), and other formats to their local computer. It is necessary to restrict this right for a group of users by disabling the Save As option.
    Resolution
    Here are the steps:
    Log on to the Central Management Console as administrator.
    Click Folder > folder containing report > Rights tab > Add/Remove.
    Add the appropriate group. Click OK. The User Folders window appears.
    Click Advanced in the Net Access Column.
    Clear the <group name> will inherit rights from its parent groups option.
    Clear the <folder name> will inherit rights from its parent folders option.
    Expand the Web Intelligence Document section.
    Click the Explicitly Denied option for the right to Export the report"s data.
    Click Apply > OK.
    When the Web Intelligence report is opened, the users will no longer see the Save As option.

  • Save report output to file

    Hi, I'm using BI publisher web service to schedule reports to email, printer, fax..etc
    How can I save report output to file? I tried both options saveOutputOption and saveDataOption but I can't find report output on the server.
    Thank you,

    option 1: bursting
    option2:
    you have to get the output, search for ReportResponse and getReportBytes,

Maybe you are looking for