Print excel files

Is there a way to print out a specific excel file from a directory that has several excel files? Also, is there a way to combine the content of multiple of excel files into one single file and print out that file? I am using Report Generation Toolkit to save data to time/date stamped Excel files (using Excel Specific VIs). I am using LV 7, Win XP.
Thank you in advance.

I do not have the report generation toolkit but I can tell you how to do it from scratch using active X commands. Also there is example programs to get you started.
1 open up excel and record a macro of everything you want to do.
2. Duplicate the macro using Active X nodes.
See examples and search the web for active X with excel
here are some examples
Joe.
"NOTHING IS EVER EASY"
Attachments:
ActiveX_for_Beginners.vi ‏74 KB
GetExcelDataFromSpecifiedField.zip ‏53 KB
Performing_a_Save_As_on_a_Microsoft_Excel_2000_Workbook_with_ActiveX_Automation.zip ‏12 KB

Similar Messages

  • Printing Excel File programmatically

    Hi,
    Can any body help me in printing an excel file with java
    I tried executing the below code.
    DocFlavor format = new DocFlavor("application/octet-stream", "java.io.FileInputStream");
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(MediaSizeName.ISO_A4);
    aset.add(new Copies(1));
    PrintService pservices = rintServiceLookup.lookupDefaultPrintService();
    DocPrintJob djob = pservices.createPrintJob();
    FileInputStream input = new FileInputStream("Test.xls");
    Doc doc = new SimpleDoc(input, format, null);
    djob.print(doc, aset);
    it prints the file if it a plain text file,if i try to print Excel File it is printing some weird characters.
    Can anybody help me in this ASAP?
    -- Sowmya

    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class Test2 {
         public static void main(String[] args) {
              readexel("C:\\Documents and Settings\\Administrator\\桌面\\1.xls");
         public static void readexel(String filename) {
              Connection c = null;
              Statement stmnt = null;
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   c = DriverManager
                             .getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ="
                                       + filename);
                   stmnt = c.createStatement();
                   String query = "Select * from [ICP111$]";
                   ResultSet rs = stmnt.executeQuery(query);
                   while (rs.next()) {
                        System.out.println(rs.getString(6));
              } catch (Exception e) {
                   e.printStackTrace();
    }

  • Can't Print Excel files

    Recently I have lost the ability to print Excel files. When I select "Print" the regualr print dialog comes up but when I click the "print" button nothing happens. I can send the files to other people and they can print them just fine. I have tried selecting other printers and the problem remains. I am trying to print to an HP Laserjet 1200 over the school's network. When I go to Print Setup the computer sees the printer and I can set it up just fine. I upgraded to Office 2004 and the problem persists. I can print Word files with no problem.
    Any suggestions?

    This thread may be of help:
    http://discussions.apple.com/thread.jspa?threadID=424795&tstart=0
    It sounds like the same problem - but with a different application. Hope it helps.

  • When i print excel file error microsoft excel has stoped working

    When I sent print then I got it one error Microsoft has stopped working

    hey raghu, 
    try to use this tip (from url)
    http://www.justanswer.com/microsoft-office/7087w-every-time-try-print-excell-sheet-workbook-excel.html
    http://cnedelcu.blogspot.co.il/2013/09/top-5-fixes-for-excel-2013-has-stopped-working-word-powerpoint-outlook.html
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • Your file could not printed due to an error on 6., it's not printing Excel files only

    Hi All,
    I have users with a Windows 7 client running Office 2007.  The
    printer is an HP Laserjet P4010_P4510 series .  The
    user has not experienced any problems printing in the past, and can still print everything except the Excel Workbook.  I
    get the error message.
    The error is
    Your file could not be printed due to an error on .........
    on 06:.
    There are several possible reasons:  There may
    not be enough memory available. Try closing files and programs you aren't using. If you use a network for printing, there may be a problem with the network connection or the printer driver. There may be loose cables or a bad connection between your computer
    and printer. For more information about troubleshooting printing problems, click Help.
    Like I said the client can print other word/ Power point
    and any other document except Excel document. 
    Any advice would be appreciated.
    Thank you in advance.

    Hi,
    It's actually not the first time I have seen this issue, please refer to this thread below:
    https://social.technet.microsoft.com/Forums/en-US/01bbe40c-f522-4148-a7cc-86303da5416d/your-file-could-not-be-printed-due-to-an-error?forum=excel
    Here are some suggestions:
    1. If this issue only occurs to one Workbook, copy the file contents and paste them to another new Workbook, try to print and check the result.
    2. Maybe Excel is configured to run in Compatibility Mode. Right click on the Excel shortcut, click Properties -> Compatibility tab -> If Excel is configured to run in compatibility mode, untick it and click OK.
    3. There may be some corruption in the Excel install, try to repair Office from Control Panel -> Programs and Features.
    I hope the information is helpful to you in this scenario.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to print  Excel file in java?

    Hi, all
    I had written a program to generate a Report with Excel in java using the jexcelapi_2_5_7 . But I don't know how to print it in java program. It seems that java print Service don�t support Excel flavor. How should I do? It will be a great appreciate for me if anyone could help me.
    Regards
    David

    Hi ,
    i m asking if you got a solution for your problem ;
    i need solution to the same problem
    thx in advance

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • New Laserjet Pro M476NW Will Not Print MS Word or Excel Files

    I just bought a brand new Color Laserjet Pro MFP M476nw printer. I am usint MS Vista 32 bit and MS Office 2007.
    The Printer prints images, emails and I can make copies, etc, but I cannot print Word files, Word Envelopes, Excel files, etc.
    Until my old HP Laserjet 4P finally died the other day (internal electrical short) I could print everything. Have spent 8-hours or so trying everything I have read from Microsoft, HP, etc, with no success. Installed, Uninstalled, reinstalled, ran diasgnostics, still no success.
    I cannot contact anyone at HP for less than $99 to talk to a person. Very frustrating.
    As I said, Word and Excel files printed just fine until I bought the new M476nw printer. How can this be Fixed?
    This question was solved.
    View Solution.

    @DerekChristense 
    Thank you for letting me know that Print and Scan Doctor helped you fix your issue and you are back printing.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Print whole answer as pdf (not as export excel file)

    Dear, we are receiving some info (information of sessions designed by people) with text fields with no limits of characters.
    Would it be possible the text box is growing as the people write more or less? Instead of having a "fix box size" with a scrollbar when the text is over the size of the box...
    We would like then to print the pdf's with all the text, so an option is also if we can just have a way to print all the text, again from the pdf, not from the excel file with all the answers.
    Thanks in advance!
    The Erasmus+ team

    Hi;
    A feature in a Paid level subscription (Basic and Plus) is downloading a PDF of the response from the View Responses tab by selecting any response row and choosing "Download Response as PDF Form".  This downloads a PDF of the response with all multi-line text fields expanded to fit all the text the user input so it can be printed.
    Thanks,
    Josh

  • Printing Excel Instance from InfoView using Excel 2003

    Hi
    I have problem with printing Excel instance within InfoView. We are using Active X as viewer - but when user schedules report in Excel and when it opens that instance - it opens in Web Excel viewer within InfoView. At that point there is no standard menu if user uses Office 2003 or actually Excel 2003 on its own machine so user cannot print instance. Can anybody help with this. If you try to open instance on machine that has Office 2007 there are no problems since instance gets open in full Excel.
    Thanks

    What version of Crystal Reports are you using?  Any service packs or hot fixes installed?
    Can you open other xls files with 2007?  
    Have you ever exported to excel before?
    I export to -excel (97-2003) data only- and open the files with Excel 2007 with no problems. Excel 2007 complains about the old format (xls) and wants to convert it to the new excel format. I alsways ignor it.
    Maybe the 'garbage' you are seeing is because the layout of your crystal report is not working for the export. Is all the data there but you have extra cells and/or lines, or the data is pushed to the left? I find that I must have the fields packed tightly with no space between them and no space above or below the fields, or I get extra cells between and lines above or below them.
    Most of my exports are detail lines with a single line header and columns are set to match the detail line. When exporting multiple lines where the fields do not line up exactly with the ones above them, I may use one or more empty text fields that matches the size of the fields above them to fill the empty space. Sort of like:
    line 1:{field1.}{field2...}{field 3}
    line 2:(text...}{text.....}{field 4)
    And you may need to turn off 'can grow' on all fields as they may cause miss-alignment. All the data will be there when you export it, even what you can not see in Crystal. You will just need to format the cells in Excel to see it.
    Debi  (hi Don)

  • Problem making an Excel file from a jsp

    Hi.
    I'm developing a web application that uses Excel for printing the reports. So far everything has worked fine, at least for the created Excel files that do not have any images on them. Now I need to create an excel file with an image as the header. I tried adding the necessary code to include the image, but when I open it, the image is not displayed (like when you open an HTML page that could load a certain image). I tried using different ways to set the src to see if maybe the path was the problem, but everytime I got the same result...
    How can I do this? How can I include the image and actually display it when the user opens the file in Excel?
    Thanks in advance
    CyberSpider

    I had a similar porblem....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    Thanks in advance...

  • Error when trying to convert excel files to pdf

    I'm getting the following error when trying to convert .xls and .xlsx files to pdf, using the "Create PDF" option:
    Error message from the primary converter:
    ALC-PDG-010-012-PDFMaker reported an error while printing the document.
    Word, Powerpoint and Text files convert without any issues. Also I'm able to opent the excel files and convert them to pdf using the acrobat option in excel.
    Livecycle Version: 10.0.2, GM
    MS Office Version: 2007
    Any help would be appreciated. Thanks in advance.
    Regards,
    Suhail N.

    It is always difficult when you need to convert multiple xls files to pdf or multiple sheets to pdf. If you have a single file to convert then the best method would be to copy your data to doc file and then convert it into PDF . If you have multiple files to convert then it is really difficult to convert all the files manually. Then the better method would be to use converter tool to convert excel to pdf . By doing this you can convert many files in just few seconds.

  • Cannot Print Excel report in Excel Online

    Hi,
    I have a Excel report that retrieves Project Data (using the OData feed). The report is housed in the Reports document library created with a PWA instance. When using Excel Online to view the report in the browser, I receive an error message saying that
    the report cannot be printed (from the browser). Instead the message states that the Excel file should be opened in Excel.
    Has anyone seen this before? Is this a limitation of utilizing Excel reports in Project Online?
    Thanks,
    Roland

    From what I can tell, only highlighting (selecting the cells) and using the print selection works. You can't set the print area in Excel (desktop).

  • Print Jpeg files from SAP

    Hi,
    We have JPEG files (pictures) stored in Custom Z table (Cluster table). We would like to know how to print these files from SAP on to a certain printer.
    We know that it is not possible to convert JPEG to BMP within SAP and print using SAPScript OR SmartForms.
    We want to find out if there is any print command to print these files to SAP printer  ?
    Any help is appreciated.
    Niranjan

    Hi Gregory,
    I had checked this tcode earlier. However, I don't see any 'Print' jpeg or any other file functionality here. What SAP might be doing here is, allow upload of any document like excel, word or pic files (jpeg, gihf, bmp) and so on and just display.
    I am interested in printing functionality without usng SAP Script OR Smartforms, because, when we get into it, we have to talk only TIF or BMP as JPGs are not supported.
    Niranjan

Maybe you are looking for

  • Safari 4.1 is crashing right after the start

    Hey guys, i've been searching this forum for quite a while to find solutions for the problem. As far as I can say its not this toolbar problem and nothing else I had found via search. Maybe you can point me into a right direction. Greetings! Date/Tim

  • TCP/IP Printer ports - HELP PLEASE

    I have a large inkjet printer that I print my graphic design to... for years it has been set up and printing just fine through an Actiontec M1424-WR-rev.D router. No setting were ever changed in the router, it just worked great right out of the box (

  • I need to combine two apple ids into one?

    I need to combine two apple Id's into one

  • [resolved] RAM detected issue in EEEPC 1215b

    Hi, guys I recently bought a new asus epc 1215b netbook,  i'm satisfied with its low price and new APU architecture, equiped with a E450 processor +  HD 6320 graphic card + 2G DDR3 RAM. But when i run  'free -M',  arch tell me the total  memory is 16

  • BC4J - reverse generation - not all entities and views in same package

    Hi I want to use reverse generation, but separate all entity objects in package (my.entities) and View Object and view links in (my.views) not all in one package. I can do this by generating entities first and then creating view objects and view link