Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Prasad Dannani #1
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
Prasad Dannani Guest
-
Single & Double Quote Problem in Database Insert/Update
Hello, I have a textarea on a form where users are able to enter text wrapped in 'single' and "double" quotes. However, when I insert or update... -
SQL insert/update problem if coldfusion field value has single quote
On the coldfusion form, if the user enter the data with single quote in a field (e.g. Joe's Party), and performs SQL insert or update statements,... -
Export to excel problem
Hi All, I don't know why my program exports to excel which can't convert cell format ? for example, I am using the following code:... -
double single quote problem in cfquery
Hi, i've this problem with ColdFusion MX 6.1 Updater and MX 7 If i try to insert a text containing a single quote (for example TEST') all works... -
Queries Of Queries Single Quote Problem
When using queries of queries I'm having the following issue. Select Company_ID From qry_MyQuery Where Company_NM = 'MyString''s' <----... -
Alvin Bruney - ASP.NET MVP #2
Re: Single Quote Problem in Excel to Export
That's how excel forces data to be a string. You will have to write code to
remove it. Or you can set the cell to a date type or some other relevant
type to get rid of the quote character.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ [url]www.lulu.com/owc[/url]
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
"Prasad Dannani" <prasad@pennywise.com> wrote in message
news:ukF#CRl2FHA.1396@TK2MSFTNGP15.phx.gbl...a> Hi,
>
> We have to export our data in sql server table to any excel sheet. We havesql> 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> server eventhen we are getting the same
>
>
> Its Urgent, Please reply ASAP,
> Prasad Dannani
>
>
>
Alvin Bruney - ASP.NET MVP Guest
-
Prasad Dannani #3
Re: Single Quote Problem in Excel to Export
We tried by specify the datatype to the oledb parameters, We tried to find
that charecter in the string which are retreive from sql server but it was
not there and then we removed the first charecter and tried then we also
tried by hardcoding the values to one or two columns. We tried by specfying
the datatype to text in the excel template.
None of the above are worked. If there is any otherway to remove it then
please inform us.
"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:eSy1a5l2FHA.3704@TK2MSFTNGP10.phx.gbl...to> That's how excel forces data to be a string. You will have to write codehave> remove it. Or you can set the cell to a date type or some other relevant
> type to get rid of the quote character.
>
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @ [url]www.lulu.com/owc[/url]
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> -------------------------------------------------------
>
>
>
> "Prasad Dannani" <prasad@pennywise.com> wrote in message
> news:ukF#CRl2FHA.1396@TK2MSFTNGP15.phx.gbl...> > Hi,
> >
> > We have to export our data in sql server table to any excel sheet. Weand> a> > template to export, using oledb we are inserting rows to this template> sql> > 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>> > server eventhen we are getting the same
> >
> >
> > Its Urgent, Please reply ASAP,
> > Prasad Dannani
> >
> >
> >
>
Prasad Dannani Guest
-
Prasad Dannani #4
Re: Single Quote Problem in Excel to Export
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" <prasad@pennywise.com> wrote in message
news:%237myn%23l2FHA.1276@TK2MSFTNGP09.phx.gbl...specfying> We tried by specify the datatype to the oledb parameters, We tried to find
> that charecter in the string which are retreive from sql server but it was
> not there and then we removed the first charecter and tried then we also
> tried by hardcoding the values to one or two columns. We tried byeach> the datatype to text in the excel template.
>
> None of the above are worked. If there is any otherway to remove it then
> please inform us.
>
> "Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
> news:eSy1a5l2FHA.3704@TK2MSFTNGP10.phx.gbl...> to> > That's how excel forces data to be a string. You will have to write code> have> > remove it. Or you can set the cell to a date type or some other relevant
> > type to get rid of the quote character.
> >
> > --
> > Regards,
> > Alvin Bruney [MVP ASP.NET]
> >
> > [Shameless Author plug]
> > The Microsoft Office Web Components Black Book with .NET
> > Now Available @ [url]www.lulu.com/owc[/url]
> > Forth-coming VSTO.NET - Wrox/Wiley 2006
> > -------------------------------------------------------
> >
> >
> >
> > "Prasad Dannani" <prasad@pennywise.com> wrote in message
> > news:ukF#CRl2FHA.1396@TK2MSFTNGP15.phx.gbl...> > > Hi,
> > >
> > > We have to export our data in sql server table to any excel sheet. We> and> > a> > > template to export, using oledb we are inserting rows to this template> > > generating the excel output.
> > >
> > > The problem here is we are getting a single quote extra in front offrom> > > cell. can anyone help us in clearing this kind of an issue.
> > >
> > > we tried sending some static strings to some columns on for taking>> > sql> >> > > server eventhen we are getting the same
> > >
> > >
> > > Its Urgent, Please reply ASAP,
> > > Prasad Dannani
> > >
> > >
> > >
> >
>
Prasad Dannani Guest



Reply With Quote

