Create Excel file with the macro?

I'm working on a project where we create many reports. Our accountant loves the fact that we can export to Excel so that it can then use the data and make his own calculations, formatting, etc. Now she's asking if when export us to Excel, if some columns may be hidden if people will just see the summary when they open the Excel file, but they may display other columns if they want details. I've seen accounting software that export to Excel and hide columns, but they do by using macros. Is it still possible during the export of ColdFusion, or should we simply create two sets of Excel files, some with abstracts and some with details?
Thank you!

You can do this by using Apache POI.

Here is a code example:
POIFSFileSystem fs = new POIFSFileSystem (new FileInputStream (outputFilename));
HSSFWorkbook wb = new HSSFWorkbook (fs);
HSSFSheet sheet = wb.getSheet ("map name");
sheet.setColumnHidden ((short) 5, true);

I use the latest version of POI. One that comes with ColdFusion may or may not have this feature, I don't know.

Tags: ColdFusion

Similar Questions

  • Captivate 8: PDF export created a file with the extension PDF... but it's actually a video. Shouldn't it exported slides as appropriate PDF document?

    In Adobe Captivate, there is a 'PDF export' checkbox when you publish your project.

    He checked the box, and the publication of project created a file with the extension PDF... but it's actually a video. Shouldn't it exported slides as appropriate PDF document?

    No, it was published in an interactive PDF, has always been the case. It's another way to publish the video, that does not need to deploy it to an LMS or a Web server, you can send the PDF file. However, since Flash player is is more integrated in later versions of the Adobe Reader software, the user is to install it.

  • accidentally create data file with the same name but different location

    Hi all

    I was accidentally create data file in the tablespace with the same name but in another location.

    / U03/DataFile/REKON65. DBF

    new data file: / u04/datafile/REKON65. DBF

    My question: what happens with data/u03/datafile/REKON65 file. DBF? the data inside/u03/datafile/REKON65. DBF went?


    Thank you

    Indra says:
    Hi all

    I was accidentally create data file in the tablespace with the same name but in another location.

    / U03/DataFile/REKON65. DBF

    new data file: / u04/datafile/REKON65. DBF

    My question: what happens with data/u03/datafile/REKON65 file. DBF?

    nothing

    the data inside/u03/datafile/REKON65. DBF went?

    not gone

  • Create a file with the installation program structure

    Hello

    I am trying to create a .exe of my program and it gives users, then helping them install the engines of execution (labview and Visa), finally, I create a few folders on desktop there and add a couple of fichiers.txt/.ini and .bat to these folders. The user then goes through some initial configuration to tell the program to use these files/folders for data entry and record data in this place.

    I want to make this process much simpler by using the installer of labview, I can get this to install my program and all necessary computer execution engines, target but I express this to create the folder structure on the desktop of users and then saying my program where it is. I think I am only telling my program the path of the file of these folders created may be a little complex, but it would be nice to have.

    I'd be happy to create just the files on the desktop and adding the fichiers.txt/.ini/.bat. Any help with this will be appreciated

    Thank you

    Of course, here it is saved back to 8.2.

    Have fun!

    Shaun

  • How to create a file with the 'location' visible tab

    Hello

    Recently, I accidentally deleted the videos folder. This record had the feature to appear in my "personal folder", but seen its physical location elsewhere. My question is: How can I create a folder I can show in my "personal folders" yet still have this physical place besides? It doesn't work with a regular folder since it doesn't have the 'location' tab, then how do I do it?

    Hello

    You can check the following link and try to create a new user account and check if the problem occurs or not.

    Create a user account

    If the problem does not occur, then check out the following link and follow the steps to repair the corrupted user profile:

    Difficulty of a corrupted user profile

    Hope this information is useful.

  • How to export this PDF to Excel file with the Adobe export function, when it is not a file but a link?

    http://media.HW.IO.S3.amazonaws.com/eaivt/files/2015/06/Preliminary_List_of_Participants_3 .pdf

    You must download the file to your computer first, and then you will be able to convert.

  • create file with the name of file with today's date

    Hello
    is it possible to create a file with the current date? In fact, I want to take backup of my oracle schema every day with the name of the file including the date...

    You can use the syntax below,

    exp = orcl_ file ' date of +%Y%m%d%%H%M%'.dmp

    Thank you

  • How to create a file with a password

    Hi all

    In my application, I create Excel files using the file ' open/create/replace' vi.

    These files contain the data for my tests.

    I want to protect those files with a password, so that an unauthorized person will not be able to open to the OUTSIDE of THE LABVIEW.

    Is this possible?

    If not, is it possible to ensure that unauthorized persons can only open these files in 'read only' + can not save them with a different name and then change?

    Thanks in advance,

    Mentos.

    Hi Mentos,

    1)

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=333106&query.ID=33090#M333106

    2)

    You can use reference workbook. Use a node with the method invoke ' Save as '.

    Mike

  • Cannot open files with the EXTENSION of the PPT FILE

    I can't open a file with the following extension using PowerPoint ppt. The message below is what I get-

    The selected file is not a valid Microsoft PowerPoint file. It may be a file created by another program.

    Try by double-clicking the file in Windows Explorer to see if another program opens to it. If PowerPoint opens again when you double-click the file in Windows Explorer, it is possible that the file is not a PowerPoint file, but its extension has been renamed to be that of a PowerPoint file type registered (for example, .ppt, .pptx, .pps, .ppsx, .pptx, .pot or .potx) but the file is not a PowerPoint file.

    To determine which program can open the file, try one of the following:

    • Contact the original author (if known) to know what program you used to create this file. Then rename the file with the correct extension so that it can be opened by this program.
    • Try opening the file in other programs.
    • If you or someone you know, are very knowledgeable about software, review the file header in a text editor to determine which program can read the file.

    Another possibility is that the file has been damaged during transfer from another computer. Trying to transfer the file again.

    The file may be damaged. If you have a copy of the file backup, use it. It is not possible repair corrupted file.

    Hello

    see if this applies to your problem

    you don't say what version of Microsoft office powerpoint, you try to open it with

    read below link information saying that you have need of powerpoint 2010 or other programs listed for ppt file extensions

    http://www.FileInfo.com/extension/ppt

    Microsoft PowerPoint 2010 Info
    Microsoft PowerPoint Viewer Info
    Nuance OmniPage 17 Info
    ACD Systems Canvas 12 Info
    Corel WordPerfect Office X 5 Info
    OpenOffice.org

    If you have an earlier version of powerpoint read this

    Install the compatibility pack if you want to open, edit and save documents, workbooks, and presentations that were created in newer versions of Word, Excel and PowerPoint. Scroll down to see the instructions and system requirements.

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=en

  • Add a folder of files with the hierarchy to the installer

    Hi all

    Have a folder of files that can be read by the app.  This folder has a hierarchy of other records and contains xml files.

    I just want to include this file and all files with the hierarchy with installer and add to the Application directory.

    I don't want to have to manually create this folder hierarchy in generator installation and add each xml file.

    Is it possible to simply add files with the hierarchy folder the installer?

    Thank you.

    You should be able to do this if you add the folder of your project as a folder automatic settlement. If you right click on my computer in the directory of your project and select Add > folder (automatic settlement) will include the folder and subfolders. Now when you go to build an installer and click on the Source Files tab you can add all of the folder and its subfolders. Note, you are not able to do it with normal files or instant capture. I hope this helps.

  • Need help to organize Excel files with several data

    Hello everyone!

    I'm working on a project consisting of a full acquisition system. I have great finisheda part of my program and now my guardian's ask me something else.

    In you project I have several datas: Move, force, speed, time,...

    And he would like that this data in the same Excel file with a predefined order. In the example: column 1: time, column 2: speed, etc.

    I already tried to work with the block 'write on a file of measure' and associate a different signal through a simulation, and it works. The first signal is the left column. The second signal is the second column. So it's ok about this. But when I try to link a VI unlike a simulation, that the file does not work. Even if I use the data of 3 or 4, I only had a column with some strange results.

    That's why I ask your help. I would like to know if you have a good way to solve this problem I want to clarify that I am a beginner in LabVIEW.

    I join my project in order to help you understand. I hope I was clear enough

    Kind regards.

    ML

    PS: Sorry for my English, I know that I'm not very good like that!

    Thank you for your project, including - it shows me that you are using LabVIEW 2015, which means that you have the Report Generation Toolkit, with the ability to easily generate Excel "Reports", available.

    If you really want to generate Excel (.xls, .xlsx) files, the GTA is, by far, the best way to do.  If you go to the search bar in the Forums of LabVIEW and type "Example revised" - the first 'hit' should be a post of two years of mine where I show how to use the GTA to more or less do what you described.  Give it a try with some of your data, and come back if you have any other questions.

    Bob Schor

  • Configure the account for children, but I can't share file with the admin profile

    original title: 2nd user is set up, but nothing works well

    I implemented a 2nd user acct to my children, but the internet does not work well. It is there no parental control over again. I can't share files with the profile administrator (adobe flash player) and I can't download them either. Nothing works directly in the new user account help?

    Hello

    ·         What type of user account that was created (Standard or administrator)?

    ·         Internet works fine on the other (former administrator) account?

    You can go through the links below and check the basics of sharing files and see if that helps.

    http://Windows.Microsoft.com/en-us/Windows-Vista/file-sharing-essentials

    http://Windows.Microsoft.com/en-us/Windows-Vista/sharing-files-with-the-public-folder

    You can also try to create a new user account and check if the problem persists. To create a new user account

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Return of the mistake of MUSE: why do we not have several files with the same name?

    Well - I thought I had all this worked and fixed, but I met the download error 'Why do we have several files with the same name' once again.  (I downloaded all the files several times today in order to 1) works the way it worked the last time and 2) get an OAM file that is not loading for some reason any load again and the download takes about an hour to transfer all the files manually.

    To recap:

    (1) an option "Upload only modified files" returns the 'Muse has encountered an error and closes.  Why do we have several files with the same name? "error just as before.

    (2) a full download will work but takes forever and is NOT a substitution for work changed files option.

    Please advise with possible solutions!

    -Dave

    Is it possible to have two .oam different files in different folders on your computer where the .oam files have the same name? I'm theorizing that there may be a bug in the treatment to ensure the folder created for a .oam placed on the server receives a unique name, particularly in the case of a partial update of the site on the server.

    Please send us the .muse file and all the files in .oam related to [email protected] along with a link to this topic for the context so we can attempt to reproduce this error and isolate the root cause. If files are larger than 20 MB, you'll need to use a service such as Adobe send & Track, Dropbox, creative cloud, WeTransfer, etc. file sharing. Thank you.

  • I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    SAMT

    Removal of watermark Adobe Premiere elements 14 test of the project file... Open the project file of 14 trials in 14 items purchased and then first Expert rendered workspaceTimeline Menu/delete the files. Then restore the timeline content.

    You can not remove the watermark from Adobe to an export of the trial even after you bought the product.

    Some of us have found that just opening the project of tryout in removes it from Premiere Elements purchased the Adobe watermark. Determine the way that works for you.

    Please let us know if everything above worked for you.

    Thank you.

    RTA

  • Can ANY product Adobe CC ingest or import AVCHD (.mts) files with the metadata accompanying .xmp sidecar files?

    I had no luck with the sidecar xmp files relative in any product, including the prelude, Premiere Pro, Lightroom or bridge.

    Hi Mike,.

    Okay, I found the outline of the bug. I was initially on the assumption that the question was how the XMP was written by Daminion. This is not the case. Their XMP seems fine. The bug is with the way we are going to analyze these JVC AVCHD files. It will take some research more sort everything, but at least now I'm on the right track. I tested the creation of metadata for a variety of other files AVCHD from Canon and Sony. All these files caused first create the XMP files with the name xxx.xmp. But, when I added the metadata in the JVC, the xmp always emerged as xxx.mts.xmp file. Then... I did some more tests with the file. If the extension of the file to rename. MPG, suddenly all the XMP you added the file in Daminion appeared. All the new metadata that I created has also been added to this file.

    It seems that there is a specific bug in our file for this JVC AVCHD flavor Analyzer. I'll get this connected and see if I can get it fixed. In the meantime, you can rename the file extension. MPG, if you want to read your existing metadata. Or... you can add to the file xxx.mts.xmp.

    Insect. Thanks for the help to identify him.

    ~ Mitch

Maybe you are looking for