473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Using Excel template files

Joe
I have a small problem using Excel templates. I've got a VB .NET class
library that will create an Excel spreadsheet. It's called from a
windows form and is passed an array containing the data and the name of
the template to use. The data passes perfectly and everything is fine
except that the cell formatting in the template is lost - dates go back
to the default, decimal places are wrong. I know I can adjust fixed
decimals, but only for the entire spreadsheet and I really need to set
up individual columns. Since I am trying to make this generic, I
really don't want to manipulate individual cells in the library.

Using a template seemed like the best way, because it could be set up
in advance for each desired spreadsheet and the library would simply
dump the data in and save it for the user. Is there a reason the
templates lose their formatting? I know it's set up correctly because
if I open it by hand and enter data the formatting is correct.

Any ideas would be greatly appreciated.

-Joe

Jun 29 '06 #1
0 1407

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bertrand | last post by:
Hello, I am using an ASP form to collect some info from users, that info is them inserted into an Excel file (copy of a template that resides on the server .. I use fso.copy to copy the...
1
by: | last post by:
Hi all, I have some statictcle functions in C#, I am making some Excel templates, they are xls files. How to make my template using these functions? Before these functions are in Excel VB so...
0
by: Guy | last post by:
I'm developing an ASP.NET application that needs to process Excel files that users can post on a shared directory on the server. These Excel files, that need to be processed by the ASP.NET (C#)...
3
by: RJN | last post by:
Hi I've a template excel file which has all the calculations defined. There are certain input values to be entered which gives a lot of output to the user. I don't want to expose the excel sheet...
2
by: shapper | last post by:
Hello, I am for days trying to apply a XSL transformation to a XML file and display the result in a the browser. I am using Asp.Net 2.0. Please, could someone post just a simple code example,...
3
by: rahatekarabhijeet | last post by:
I want to create excel sheet using perl, i had installed all the necessary modules from CPAN. The perl program i taken from CPAN itself it is given below, #!/usr/bin/perl -w use warnings; use...
0
by: motmotmot | last post by:
Hi guys. I have a Excel Template where users can fill up. Then i have a web application that allows users to upload Excel files. I was wondering if anyone knows how i can verify if the Excel file...
7
by: Stephenoja | last post by:
Hello Guys, I have a challenge here and would really appreciate some help. I have customer bills that are all done in excel with a template and stored in directories by month order. At the end...
5
geolemon
by: geolemon | last post by:
Import text wizard says: I'm banging my head on this one, here's why: I've been importing files using this process and data format, with success! I created a temporary table in Access to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.