How to display multi level headers in Aspose cells Java in MS Excel? - aspose

Please let me know if Aspose Cells Java API provides a way for doing this?
Please see the attached pic as below : enter link description here

Aspose.Cells for Java can do it but it cannot do it automatically. You will have to write a code for it. Please see this image.
Here the first header has merged cells, Aspose.Cells can merge cells but to merge them, you will have to write the code by yourself.
But if you remove the first header then second header which consists of single cells and its data, which also consists of single cells can be imported to worksheet automatically without writing any code by user via Cells.importData() method.
Note: I am working as Developer Evangelist at Aspose

Related

C++ Reading data from excel file and treating them as variables

I am using C++ & CLR to create a GUI in Visual studio. The whole app is like a calculator for the price of transport and the costs associated with it for my work. At work, we are using Helios and we are able to export certain data to Excel. Specifically, the prices of transport, packaging materials, etc. And what I need is for my program to be able to read certain cells in Excel where prices and other variables are recorded and calculate with it so that I don't have to rewrite all the values manually in the source code.
I spent a lot of time looking for a solution but couldn't find anything that referred to my problem. Is it even possible to build such a program? I don't want anyone to solve it for me. Maybe I just missed some banality and just need some direction. And as far as I understand, the CSV format is irrelevant for me, because I need to work with a few specific cells that Helios pre-fills for me in the Excel sheet.

How to generate Data Matrix Barcode from Nav 2015?

I searched a lot regarding the Data Matrix Code generation from Nav 2015 but could not get any proper solution for that though, i got some code from below link but still, some of the automation variables is not there in Navision, so I need you guys help on this, is there any Code Unit or any object or any other way in Nav..
http://www.barcode-soft.com/dynamics-nav-barcode.aspx
It depends on how much time you have to get the barcode.
If it's a back end job, like a report, you can call a command line tool to create the barcode and import the generated image file into a BLOB of a table variable. This table field is then printable within the report.
Another way I use in production is running a web service that creates the barcode and then let Navision create a web page that is opened in a browser window..
I suggest using a dll (written in C# with ZXING.NET) to generate it and then importing it in NAV.

Dynamic format in aspose.cells generated excel

Is it possible to create a conditional format or something like that where the format is depending on the value of the cell?
For example when there is "#000000" as cell value, the background color of the cell should be black.
It is possible to have a condition on the cell value but I did not find any example where the format is dynamic. And it is no Option to create a format for each possible hex-color =)
Yes it is possible to add such a conditional formatting dynamically using Aspose.Cells. Please add your desired conditional formatting using the Worksheet.ConditionalFormattings collection. It will be better if you create your conditional formatting using Microsoft Excel and then load your workbook using Aspose.Cells and observe the properties of your conditional formatting object by exploring Worksheet.ConditionalFormattings collection and then create the same conditional formatting object through code. If you find any difficulty, then please feel free to post in Aspose.Cells forum on Aspose Website.
Please also see this article for your help in working with conditional formatting.
http://www.aspose.com/docs/display/cellsnet/Conditional+Formatting
Note: I am working as Developer Evangelist at Aspose

How to read Excel data from C++ project

I my c++ project I want to open an excel file and query data and identify the rows that matches the specific column values(more than one column). What is the best methodology to connect to excel and query the worksheets?
The excel might contain several thousands of records and hence it is very important to complete the search and show the results in quick time and optimum performance.
Request you to let me know more than one option and suggest the best out of it.
See here for a library (under an open CPOL) license another Stackoverflow user recommends:
https://stackoverflow.com/a/2879322/444255

Combining two PDF files in C++

In C++ I'm generating a PDF report with libHaru. I'm looking for someway to append two pages from an existing PDF file to the end of my report. Is there any free way to do that?
Thanks.
Try PoDoFo
http://podofo.sourceforge.net/
You should be able to open both of the PDFs as PDFMemDocuments using PDFMemDocument.Load( filename ).
Then, acquire references to the two pages you want to copy and add to the end of the document using InsertPages, or optionally, remove all but the last two pages of the source document, then call PDFDocument.
Append and pass the called document. Hard to say which would be faster or more stable.
Hope that helps,
Troy
You can use the Ghostscript utility pdf2ps to convert the PDF files to PostScript, append the PostScript files, and then convert them back to a PDF using ps2pdf.