Export a view as text file having fixed column width - drupal-7

it looks like nothing has been developed in Drupal 7 to export views content as fixed column width flat file.
How can I enable a user to export a view with such format?
Thanks!

You can export Views data into various file formats using Views Data Export. Module provide supports for exporting data in
CSV
Microsoft XLS (or really simple HTML understood by Excel)
Microsoft DOC
Basic TXT
XML

Related

How to use PDF file as data source in SSIS

I'm wondering it's possible using PDF how data source in SSIS. I've tried converting to another flat file, but I haven't been able to. Please is someone have a script to convert PDF or something that might help me.
First, You have to specify if the .pdf file contains text, table or just images. If the pdf file can be parsed (not images / scanned documents), then you can use a Script Component as Source and write a C# code to convert the pdf content into rows.
You can refer to the following links for more details about parsing pdf and using Script Component as Source:
Parsing pdf using C#
Convert a pdf file to text in C#
Converting PDF to Text in C#
Read and Extract PDF Text in C# and VB.NET
Using Script Component as Source
Creating a Source with the Script Component
SSIS – USING A SCRIPT COMPONENT AS A SOURCE

How to create an Excel from HTML(div based structure) with CSS styling

I am currently working on a request, through which I am trying to export an excel sheet from a div based structure. How can we add styles, so that that the div structure will fit the Excel table structure?
From another question
Depends if you want a CSV file or an XLS file. An XLS file can include formatting information for the cells, as well as row/column locking, protections and other features that are impossible in a CSV file. Also, keep in mind that Excel does not correctly support UTF-8 encoded content when opening CSV files.
This means you have to know the format XLS files are made of if you want to style them. Or use the standard CSV extension, without styling.

Export Phabricator tasks to spreadsheet / csv

I spent more than 15 minutes on Phabricator to look for the Export to spreadsheet feature without success. I have seen there that this feature exist. My goal is to migrate away from Phabricator.
You need to implement PHPExcel and add it into your php config include_path.
Then you can use the Export To Excel on each Maniphest page with the built ind queries and your custom queries.
If you need a custom format you need to customize the existing ones. Therefore see files in ./t/phabricator/src/applications/maniphest/export/

Excel like multi tab report in SSRS

Is there anyway possible to have a SSRS Report that has excel like tab? Bascially a user has many data saved in Excel sheet with many tabs (close to 7-8) with little difference in those tabs. Hence he was looking for to built the report that when exported to excel can bring data in those tabs.
Second Question: When I export the report to excel, is it possible to have predefined filters in excel?
Let me know for any questions.
Thanks!
You can configure the report (2008R2 and up) to break the data up into named tabs when exporting to Excel...
Reporting Services export to Excel with Multiple Worksheets
I don't think you can have predefined filters in excel (I'm assuming you mean the Excel Auto-Filter stuff on the data ribbon tab) with the basic export to excel functionality in SSRS. If you go custom (via the ReportViewer control) then you could add logic to update the export file (after exporting) to programmatically add in the filtering options.
As far as i have worked on SSRS, i dont think so we can import parameters in excel same as in report.
However we can show data in separate sheets in excel
As you said data can be in 7-8 sheets, there are properties named 'PageName' and 'Pagebreak' of a tablix. Write the name of the page and add page break between those tablixes.
This will create sheets and also give names on those sheets.

How to configure an Export Option in Reporting Services for Text export with no separators?

There's the need to send data to an external interface - a financial statutory report to be sent periodically for some country's government which expects data as text files with no separator between fields: fixed width, left-padded with zeros or blank spaces (depending on data type) to fill the space.
So we created an RDL with the required fields and were looking at adding an export option in for this.
Can an export option be created to export in this format?
We'd like to avoid having to CAST all appropriate fields to NVARCHAR in the stored procedure that feeds the report, left-pad them there and finally concatenate everything - unless that's the only option to accomplish it.
Also, we definitely don't want to code an ad-hoc export method in .NET, there won't be much reports with this exporting option so it's not worth it. Besides it's not so easy to convince the server team to deploy DLLs to servers - if there's something already coded, open source or shareware, we could have a look onto it though wouldn't be the preferred solution.
Previously we had been able to configure the XML configuration file for Reporting Services 2008 to add a new export option for export to Text with fields separated by pipes, so were thinking to try this first. Unfortunately discovered if you use the Text or CSV export motors but specify no separator, comma is used by default.
Any ideas?
In my opinion, Reporting Services isn't the right tool for this job. You're trying to bend a reporting tool into a data migration tool. While on the surface I guess it looks similar - outputing formatted data - the structure of the fixed length text file isn't really what Reporting Services is good at producing out of the box. We do a similar fixed length export using a scheduled SQL Server Agent job. You could also write a console app and run it manually or use Windows Scheduled Tasks to run it.
If you're determined to use Reporting Services for some functionality reason (for example, the export has to use the same parameters to filter the data as the report that is being viewed) then I'd simply create a second report based on the first with no header or footer, just a detail section with a table containing one wide field with an expression in it that creates the formatted text you need for your export. Put a link in the header of the main report called "Create export file" that links to this new report and passes the parameters across then export it to some non-paginating format like CSV.
Otherwise, you're looking at creating a custom renderer which you don't want to do and I agree is overkill for this.

Resources