Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Fiorellino

#1
Thank you Liviu for adding my suggestion, I will catch TODO file for items tagged as #18, #124, #152, #170, #300, #310 (ad mine #420)

Some good suggestion for handling OOXML file format with QT can be found here :
Handling Microsoft Excel file format within QT

and I think that a good QT external library to give a try can be this one :
GitHUB - VSRonin - QtXlsxWriter

I will take some time to dig in FET source code to try to understand how it works...
Liviu stay online 'cause I'll have some questions for you in the next days  ;D
#2
Hi Livium, thank you for your quick response!

I'm not an Office Suite expert (nor commercial or free/opensource) but according to Wikipedia Office_Open_XML is a standardized format developed by Microsoft and approved from an international committee or consortium (originally EICMA, later ISO) which can be easily open, used and converted from a lot of Office Suite software

BUT

maybe using a true, open and free office format like OpenDocument is the right choice for a solution like FET
https://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_and_OpenDocument

It's so difficult to think that after a timetable has been successfully generated, the same data can also be exported in an Office open format ?
(like the .html webpages already built)

QT Library can't help in this not so easy task ?
(sorry I don't know this framework anymore after I've used it a long time ago when it was a TrollTech product called QT Embedded)
#3
Ciao a tutti.

Prima di tutto, vorrei inviare un GRANDE ringraziamento a Liviu per questo bellissimo e POTENTE software open-source!

Sto cercando di aiutare un'amica a pianificare un buon orario scolastico, quindi sono casualmente diventato un nuovo utente FET (probabilmente perché ho alcune competenze sull'automazione VBA di Office / Excel)

Sono stato da lei indirizzato verso questo vecchio post nel forum FET:
https://lalescu.ro/liviu/fet/forum/index.php?topic=504.msg2970#msg2970

Si tratta di un foglio Office Excel 2010 con una macro (con commento in italiano ed etichette in italiano per i nomi delle variabili, quindi non del propriamente comprensibile ad uno sviluppatore internazionale) che può importare un file .FET e le sue _ACTIVITIES.XML correlate (generate) nel foglio Excel stesso;
è molto utile se si deve rimpaginare l'orario e se si devono adattare i dati in un formato stampabile (un po' più gradevole alla vista) perché si possono aggiungere intestazione, piè di pagina, logo della scuola ed in buona sostanza si può modificare tutto ciò di cui hai bisogno con la flessibilità permessa da un foglio di calcolo.

Ovviamente ;D la macro non funziona con una versione recente di Excel (2016/2020) ed è qui che entro in gioco io 8)

Allegato a questo post trovate la mia versione aggiornata che risolve le incompatibilità che io ho riscontrato con gli ultimi Office 2016/2020.

Si noti che è ancora una versione beta ed è stata testata solo con MSOFFICE 2016 ITA - Excel versione 16.0.4849.1000 - 32 bit

BUG CONOSCIUTO / NOTE UTILI:

- non funziona (ancora ...) su Office / Excel per MAC OSX (ma ci stò già lavorando)
- compatibilità non completamente testata con la versione a 64 bit delle ultime versioni di Office / Excel (ho corretto alcuni errori di compilazione in modo che gli avvisi siano spariti (le variabili sono convertite da Long a LongLong e le chiamate a 32 bit sono ora compatibili con ambienti sia a 32 che a 64 bit)
- non funziona in OpenOffice / LibreOffice (si puo' convertire e aprire il foglio di lavoro ma la macro non si avvia perché viene ignorata all'apertura e/o conversione in quanto é stata scritta in VBA -> VisualBasic for Application, un linguaggio di programmazione di Microsoft coperto da copyright e  brevettato ed usato in tutti i loro prodotti Office quali Word, Excel, Access, Outlook, Project, Visio ...)

La soluzione A LUNGO TERMINE per OpenOffice / LibreOffice è una conversione completa della macro in linguaggio di scripting JAVA ma non è un compito facile; piu' ci penso e piu' mi convinco che sia molto meglio ESPORTARE direttamente da FET in formato Office Open XML (utilizzabile sia da Microsoft Excel che da LibreOffice Calc)
https://en.wikipedia.org/wiki/Office_Open_XML

Provate la macro e fatemi sapere come vi trovate (a breve rilascero' comunque una nuova versione con delle modifiche minori) !

Grazie a tutti e

BUON ANNO SCOLASTICO !!!
#4
Hi guys, ;) how are you?

First of all, I would like to send a BIG thank you to Liviu for this beautiful and POWERFUL open-source software!

I'm trying to help a friend to plan a good school timetable so I accidentally became a new FET user (maybe 'cause I have some few skills on Office / Excel VBA automation)

She pointed me to this old resource on the FET forum: https://lalescu.ro/liviu/fet/forum/index.php?topic=504.msg2970#msg2970

It is an old Office 2010 Excel sheet with a macro (with Italian comment and Italian labeling for variable names, so not fully comprehensive for an international developer) that can import a .FET file and its related (generated) _ACTIVITIES.XML into the Excel sheet itself;
it's very useful if you need to re-layout the timetable and need to adapt data in a (good enough) printable format because you can add header and footer, apply a school logo and change anything you need with the flexibility of a spreadsheet.
Obviously  :o, the macro doesn't work with a recent Excel version (2016/2020), and then I get involved 8)

Attached to this post my first updated version that fixes some incompatibilities I've found with the latest Office 2016/2020.

Please note that it's still a beta version and has only been tested with MSOFFICE 2016 ITA - Excel version 16.0.4849.1000 - 32 bit

KNOWN BUG / USEFUL NOTES:

  • does not (yet ...) work on Office / Excel for MAC OSX
    (but works in progress to fix code)
  • not fully tested compatibility with the 64-bit version of the latests Office / Excel versions
    (some compilation errors and warning are gone but  ::) -> Converted from Long to LongLong and 32-bit library calls are now 32/64 compatible)
  • Macro/Automation doesn't works in OpenOffice / LibreOffice and never will works ...
    (you can convert and open the worksheet but the macro doesn't start, in fact, it is ignored when opening / converting file because it is written in
    VBA -> VisualBasic for Application, a programming language patented by Microsoft, covered by their copyright and used in all their Office products like Word, Excel, Access, Outlook ...)

The LONG-TERM solution for OpenOffice / LibreOffice is a complete macro conversion to JAVA scripting language but it is not an easy task,
Maybe much better to add in FET an EXPORT to Office Open XML format (usable both by Microsoft Excel and LibreOffice Calc) ... Liviu, are you listening? ;D
https://en.wikipedia.org/wiki/Office_Open_XML

ANYONE is invited to test this beta version (I'm already working on some minor updates)