www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Report generator for D

reply "Sergey" <httpal gmail.com> writes:
  Please, help...

I want to use D (Vibe.d) to create a web client to access the 
database of medical institutions. Tell me, please, what about the 
reports (report generator)? I need to upload reports in DOC and 
XLS.

Thanks in advance.

Regards, Sergey
May 05 2014
next sibling parent reply "Rikki Cattermole" <alphaglosined gmail.com> writes:
On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote:
  Please, help...

 I want to use D (Vibe.d) to create a web client to access the 
 database of medical institutions. Tell me, please, what about 
 the reports (report generator)? I need to upload reports in DOC 
 and XLS.

 Thanks in advance.

 Regards, Sergey

I'm afraid I don't believe there to be any libraries for dealing with those formats. But via a quick google search I did find a (paid) library that you could easily bind to via extern(C) [0]. I also found another library [1] for word documents and supposedly excel. I don't know what the quality is for either. Also if you want to do a shared library binding instead of static you may want to check out derelict-util. [0] http://www.libxl.com/ [1] http://libopc.codeplex.com/
May 05 2014
parent simendsjo <simendsjo gmail.com> writes:
On 05/06/2014 08:08 AM, Rikki Cattermole wrote:
 On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote:
  Please, help...

 I want to use D (Vibe.d) to create a web client to access the database
 of medical institutions. Tell me, please, what about the reports
 (report generator)? I need to upload reports in DOC and XLS.

 Thanks in advance.

 Regards, Sergey

I'm afraid I don't believe there to be any libraries for dealing with those formats. But via a quick google search I did find a (paid) library that you could easily bind to via extern(C) [0]. I also found another library [1] for word documents and supposedly excel. I don't know what the quality is for either. Also if you want to do a shared library binding instead of static you may want to check out derelict-util. [0] http://www.libxl.com/ [1] http://libopc.codeplex.com/

There is also using COM directly, which I've used previously. It's quite tedious, but it works. For D1 there's also Juno: http://www.dsource.org/projects/juno Not sure if someone has updated it for D2.
May 05 2014
prev sibling next sibling parent "Rikki Cattermole" <alphaglosined gmail.com> writes:
On Tuesday, 6 May 2014 at 06:28:20 UTC, simendsjo wrote:
 On 05/06/2014 08:08 AM, Rikki Cattermole wrote:
 On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote:
  Please, help...

 I want to use D (Vibe.d) to create a web client to access the 
 database
 of medical institutions. Tell me, please, what about the 
 reports
 (report generator)? I need to upload reports in DOC and XLS.

 Thanks in advance.

 Regards, Sergey

I'm afraid I don't believe there to be any libraries for dealing with those formats. But via a quick google search I did find a (paid) library that you could easily bind to via extern(C) [0]. I also found another library [1] for word documents and supposedly excel. I don't know what the quality is for either. Also if you want to do a shared library binding instead of static you may want to check out derelict-util. [0] http://www.libxl.com/ [1] http://libopc.codeplex.com/

There is also using COM directly, which I've used previously. It's quite tedious, but it works. For D1 there's also Juno: http://www.dsource.org/projects/juno Not sure if someone has updated it for D2.

It has been according to its description [0]. But it looks like it hasn't been updated in over a year. Also Windows only, which may not be what Sergey is wanting. [0] https://github.com/JesseKPhillips/Juno-Windows-Class-Library
May 05 2014
prev sibling next sibling parent "Sergey" <httpal gmail.com> writes:
On Tuesday, 6 May 2014 at 06:36:40 UTC, Rikki Cattermole wrote:
 On Tuesday, 6 May 2014 at 06:28:20 UTC, simendsjo wrote:
 On 05/06/2014 08:08 AM, Rikki Cattermole wrote:
 On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote:
 Please, help...

 I want to use D (Vibe.d) to create a web client to access 
 the database
 of medical institutions. Tell me, please, what about the 
 reports
 (report generator)? I need to upload reports in DOC and XLS.

 Thanks in advance.

 Regards, Sergey

I'm afraid I don't believe there to be any libraries for dealing with those formats. But via a quick google search I did find a (paid) library that you could easily bind to via extern(C) [0]. I also found another library [1] for word documents and supposedly excel. I don't know what the quality is for either. Also if you want to do a shared library binding instead of static you may want to check out derelict-util. [0] http://www.libxl.com/ [1] http://libopc.codeplex.com/

There is also using COM directly, which I've used previously. It's quite tedious, but it works. For D1 there's also Juno: http://www.dsource.org/projects/juno Not sure if someone has updated it for D2.

It has been according to its description [0]. But it looks like it hasn't been updated in over a year. Also Windows only, which may not be what Sergey is wanting. [0] https://github.com/JesseKPhillips/Juno-Windows-Class-Library

need a library for Linux
May 05 2014
prev sibling next sibling parent "Sergey" <httpal gmail.com> writes:
I found this http://xlslib.sourceforge.net/. Also, it hasn't been 
updated in over about two and a half years.
May 05 2014
prev sibling next sibling parent "Rikki Cattermole" <alphaglosined gmail.com> writes:
On Tuesday, 6 May 2014 at 06:51:07 UTC, Sergey wrote:
 I found this http://xlslib.sourceforge.net/. Also, it hasn't 
 been updated in over about two and a half years.

Well in worse case scenario [0] its not like its not implementable from scratch :) Although I'd say have a go with the libs I gave you originally. They are probably the most likely to be usable. [0] http://msdn.microsoft.com/en-us/library/gg548604(v=office.12).aspx
May 06 2014
prev sibling next sibling parent Daniel =?ISO-8859-2?B?S2964Ws=?= via Digitalmars-d writes:
V Tue, 06 May 2014 06:51:02 +0000
Sergey via Digitalmars-d <digitalmars-d puremagic.com> napsáno:

 I found this http://xlslib.sourceforge.net/. Also, it hasn't been 
 updated in over about two and a half years.
 

This one does not work properly for large files.
May 06 2014
prev sibling parent "Sergey" <httpal gmail.com> writes:
On Tuesday, 6 May 2014 at 07:06:09 UTC, Rikki Cattermole wrote:
 On Tuesday, 6 May 2014 at 06:51:07 UTC, Sergey wrote:
 I found this http://xlslib.sourceforge.net/. Also, it hasn't 
 been updated in over about two and a half years.

Well in worse case scenario [0] its not like its not implementable from scratch :) Although I'd say have a go with the libs I gave you originally. They are probably the most likely to be usable. [0] http://msdn.microsoft.com/en-us/library/gg548604(v=office.12).aspx

Think I'll try the libraries, which you suggested. [0] http://www.libxl.com/ [1] http://libopc.codeplex.com/
May 06 2014