Bug 342776 - KMyMoney can export reports in HTML only
Summary: KMyMoney can export reports in HTML only
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.7.1
Platform: Windows CE Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 21:27 UTC by Joel Brodard
Modified: 2019-08-29 15:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1,5.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Brodard 2015-01-12 21:27:15 UTC
KMyMoney can export reports in HTML and CSV, but always save in HTML even if I selected CVS... Why? (Windows 8.1)
Comment 1 Jack 2017-03-13 23:38:53 UTC
On Linux, I always save reports as CSV, with no problems.  Does this still happen under Windows with a more recent version?  (I will try to test on Windows, but I don't have one handy right now.)
Comment 2 Mark 2017-03-15 22:56:16 UTC
I can confirm that this problem still exists in 4.8.0 on Win10 Home. Regardless of the filter value and whether "Automatically select filename extension" is checked, the report is always saved in html unless the file name contains the ".csv" extension. I cannot reproduce this problem in 4.8.0 on Xubuntu 16.04.
Comment 3 Jack 2017-03-15 23:27:26 UTC
Ah - that's a more specific issue, and will probably help troubleshooting the cause.  So if you explicitly use file.csv it does save as csv, but otherwise it saves as html?  Also, have you actually looked to see that the saved file really is html and is not just misnamed?  (Again, I don't have a windows copy handy to test myself.)
Comment 4 Mark 2017-03-15 23:40:50 UTC
Yes. It is saved in CSV if a file extension of ".csv" is specified in the file name. Perhaps an issue in KFileDialog and interaction with native libraries on Windows?
Comment 5 Ralf Habacker 2017-06-27 13:32:20 UTC
Git commit a26341f8c00cc997846c5326e80bbf9c9175cb8e by Ralf Habacker.
Committed on 27/06/2017 at 13:31.
Pushed by habacker into branch '4.8'.

Fix 'KMyMoney can export reports in HTML only'.

In case the user entered a file name without an extension
choose the extension according to the selected file type
and do not choose always type 'html'.
FIXED-IN:4.8.1

M  +1    -1    kmymoney/views/kreportsview.cpp

https://commits.kde.org/kmymoney/a26341f8c00cc997846c5326e80bbf9c9175cb8e
Comment 6 Thomas Baumgart 2017-09-12 18:34:04 UTC
Git commit f1d5c01f71be8b74809b2b25187653ec3bb51798 by Thomas Baumgart.
Committed on 12/09/2017 at 18:32.
Pushed by tbaumgart into branch 'master'.

Add the default filetype KF5 style

In KF5 the dialog has all options to add the filetype automatically and
we don't need to take care of it in the application

M  +1    -5    kmymoney/views/kreportsview.cpp

https://commits.kde.org/kmymoney/f1d5c01f71be8b74809b2b25187653ec3bb51798