Topic Options
#51276 - 10/18/16 01:05 PM Gridview Export to Excel
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
When we export from Gridview to Excel, the data in Excel is formatted in a table. Is there a way to export as unformatted text? We want to create a .csv for importing from the Gridview data.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#51278 - 10/18/16 01:25 PM Re: Gridview Export to Excel [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3501
Loc: Toronto ON, Canada
Hi Susan:

Here is a PDF document that provides a couple of ExcelDirect-related tips, including how to export to CSV: ExcelDirect document

I'll confess that I've never tried this with GridView, only with using ExcelDirect to export a grid from a module. However I expect it would work the same way.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#51301 - 10/20/16 10:44 AM Re: Gridview Export to Excel [Re: Bruce Gardner]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Thanks, we can see how we can export gridviews to .csv however it seems we can only globally change it. We actually only want to export one particular gridview to .csv, not every gridview. Is this possible?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#51313 - 10/20/16 02:43 PM Re: Gridview Export to Excel [Re: SusanTennier]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4446
Loc: Wynnewood, PA
Hi Susan

I don't think it's possible. I've created a batch file that temporarily swaps in a SSI2XL.INI file, does the export to CSV and then swaps the file out. That's the best I've come up with so far.

Steve

Top
#51315 - 10/20/16 03:26 PM Re: Gridview Export to Excel [Re: Steve Schwartz]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
In a future release of Gridview will include Export to | CSV

It is possible to open an Excel spreadsheet and the sav Excel, open the Excel workbook and File | Save As | CSV. An extra step but it gets you what you desire.

Top
#51316 - 10/20/16 04:24 PM Re: Gridview Export to Excel [Re: Michael Mulrooney]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4446
Loc: Wynnewood, PA
It doesn't get you to where you want to be because Excel likes to modify text to fit its preconceived notion of what it thinks it should be. The objective is to go straight to CSV without Excel getting its hands on it.

Steve

Top
#51327 - 10/21/16 12:39 PM Re: Gridview Export to Excel [Re: Steve Schwartz]
LanceBakker Offline
Adagio Enthusiast

Registered: 01/10/13
Posts: 25
Loc: Trenton, Ontario
Hi Everyone,

I have a work around that worked for us. We were reading data from an .XLS and exporting that data combined with data from Adagio. When I created the .INI file it broke that link. I changed the data we were reading from to a .CSV (we unfortunately need to hide the header so it doesn't pull into the Gridview). Doing that fixed that link and we can now export to Open Office to save our .CSV file to Unicode UTF-8 (the language we need for our website). Having a CSV export button would help as now everything exports as CSV into Open Office, it would be nice to only do a single file when you need it.

Thanks,
-Lance


Edited by LanceBakker (10/22/16 04:03 AM)
_________________________
Lance Tennier
TDL Canada

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 92 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14237 Topics
69720 Posts

Max Online: 359 @ 11/18/19 09:08 PM
April
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30