luca.pocchione666 Posted October 23, 2015 Share Posted October 23, 2015 Hi everyone,i have a question for you: Is it possible to read a .txt file as datasource in Jasper Report?What should i do? Is there a precise procedure that i can follow?Thanks a lot for your kind coperation.Regards Link to comment Share on other sites More sharing options...
ernst_2 Posted October 23, 2015 Share Posted October 23, 2015 Rename your my.txt to my.csv and insert content like:<columnName0>, <columnName1><value01>, <value11><value02>, <value12><value03>, <value13> And use "CSV File" as data adapter.If you need the file on the server, follow this description (not tested):http://community.jaspersoft.com/questions/802580/how-create-excel-data-source-jasperreports-server Link to comment Share on other sites More sharing options...
luca.pocchione666 Posted October 23, 2015 Author Share Posted October 23, 2015 I'm using Jaspersoft Studio and i just solved with csv file connection. In the csv file connection menu when you select the file in explorer menù, you should choose to see all file.Once choosen txt file you have to select the space as file separetor (or tab, it depends on what kind of file you'd like to use) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now