473,320 Members | 1,766 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,320 software developers and data experts.

Single Quote Problem in Excel to Export

Hi,

We have to export our data in sql server table to any excel sheet. We have a
template to export, using oledb we are inserting rows to this template and
generating the excel output.

The problem here is we are getting a single quote extra in front of each
cell. can anyone help us in clearing this kind of an issue.

we tried sending some static strings to some columns on for taking from sql
server eventhen we are getting the same
Its Urgent, Please reply ASAP,
Prasad Dannani
Nov 19 '05 #1
4 2883
we'd need to see the ASP.NET (VB?) code most likely...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Prasad Dannani" wrote:
Hi,

We have to export our data in sql server table to any excel sheet. We have a
template to export, using oledb we are inserting rows to this template and
generating the excel output.

The problem here is we are getting a single quote extra in front of each
cell. can anyone help us in clearing this kind of an issue.

we tried sending some static strings to some columns on for taking from sql
server eventhen we are getting the same
Its Urgent, Please reply ASAP,
Prasad Dannani

Nov 19 '05 #2
Its C# Code. copy template to some folder and then read it by using oledb
with parameters nothing else.

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:77**********************************@microsof t.com...
we'd need to see the ASP.NET (VB?) code most likely...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Prasad Dannani" wrote:
Hi,

We have to export our data in sql server table to any excel sheet. We have a template to export, using oledb we are inserting rows to this template and generating the excel output.

The problem here is we are getting a single quote extra in front of each
cell. can anyone help us in clearing this kind of an issue.

we tried sending some static strings to some columns on for taking from sql server eventhen we are getting the same
Its Urgent, Please reply ASAP,
Prasad Dannani

Nov 19 '05 #3
We tried all possible combinations and finally able to find that the problem
is there in the excel template i specified the cells format type to text
then it worked properly.
"Prasad Dannani" <pr****@pennywise.com> wrote in message
news:e%****************@TK2MSFTNGP09.phx.gbl...
Its C# Code. copy template to some folder and then read it by using oledb
with parameters nothing else.

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:77**********************************@microsof t.com...
we'd need to see the ASP.NET (VB?) code most likely...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Prasad Dannani" wrote:
Hi,

We have to export our data in sql server table to any excel sheet. We have a template to export, using oledb we are inserting rows to this template and generating the excel output.

The problem here is we are getting a single quote extra in front of each cell. can anyone help us in clearing this kind of an issue.

we tried sending some static strings to some columns on for taking
from
sql server eventhen we are getting the same
Its Urgent, Please reply ASAP,
Prasad Dannani


Nov 19 '05 #4
On Wed, 26 Oct 2005 23:02:45 +0530, "Prasad Dannani" <pr****@pennywise.com> wrote:

¤ Hi,
¤
¤ We have to export our data in sql server table to any excel sheet. We have a
¤ template to export, using oledb we are inserting rows to this template and
¤ generating the excel output.
¤
¤ The problem here is we are getting a single quote extra in front of each
¤ cell. can anyone help us in clearing this kind of an issue.
¤
¤ we tried sending some static strings to some columns on for taking from sql
¤ server eventhen we are getting the same
¤

This is normal behavior from the Excel ISAM driver when it has to determine the data type of the
source. As you've determined, it isn't an issue if the columns in the destination Excel Worksheet
are defined prior to the export.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #5

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

Similar topics

1
by: Matt | last post by:
I have an ASP page that calls ASP routines that I created that execute a database query and return the results to a recordset. I then iterate through the recordset and display the data in a table....
1
by: apgoodb | last post by:
I have a database that I built some functionality to export a query to excel and then do some formatting. After reading a lot of comments it seems I need to use "late binding", because some of the...
5
by: Maria L. | last post by:
Hi, I need to export the content of a DataGrid (in Windows application in C#), into an Excel spreadsheet. Anyone knows how to do this? Any code snippets would help! thanks a lot, Maria
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
4
by: paul.chae | last post by:
I have a table in Access with about 3000 records. There are ~60 unique values in the ID field for the 3000 records. What I would like to do is automatically generate multiple Excel worksheets...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
3
by: Eddy | last post by:
I would like to export the output of 2 queries to excel namely: 1. QryProrationbyWBS_1 2. QryProrationbyWBS_2 However I want to do this using the same spreadsheet say sheet1 and sheet2 or...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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

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.