I have an array of values say
arr(0)="Sam"
arr(1)="1452"
arr(2)="NY"
I want to generate a QR barcode with these values. We are using ITextSharp. Any help will be appreciated. Iam using vb.net.
Here are some examples how to create barcodes with iText:
http://itextpdf.com/examples/iia.php?id=297 (the last one is a QR barcode)
The datails of the API is here:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/BarcodeQRCode.html
Please note that even though these links refer to the Java version of iText, the names in iTextSharp should be pretty similar.
Related
For our SaaS (LAMP) product reporting we are currently using JasperReports. We find it too cumbersome to develop reports with and the output in Word unworkable. Moreover, a couple of customers request to be able to develop simple reports themselves (to be used as mail merge). We would therefore like to develop templates right in Word. The idea is to have an application/webservice that would receive the Word template and JSON data from the LAMP application and return the filled-in report. The report has to support:
Loops inside content (repeating a document section several times while filling in array data)
Filling in tables (populating rows from array)
Filling in chart data in pre-created charts (from array)
This is the functionality we are using in JasperReports right now. Are there existing solutions to this? I've found quite a lot that can substitute simple variables, but no info about the the above three points. Will it be a lot of effort to write one from scratch? I would prefer a Windows OpenXML-based solution rather than a Linux PHPOffice-based one as I presume the former would handle the text split by spell-checker and language tags (though I'm not sure).
Windward and Docmosis are both commercial products that support the features you've listed and they are intended to be added to your application to provide reporting capabilities. Neither is are not OpenXML based. They can use Word documents as templates and perform the data merge into different output formats. Please note I work for Docmosis.
Aspose Words is another tool and it can populate a template but most of the power is through code rather than controls/directives in the template. Given your OpenXML thoughts, perhaps this is more what you are looking for.
More tools are recommended here in StackExchange.
I hope that helps.
ReportBox is a Web based reporting solution that can be used by any software application to generate documents and reports in Microsoft Word/ Excel/ PowerPoint/ HTML(DocX/Xlsx/PPTx/HTML) using OpenXML.
The process starts by building a Microsoft Word/ Excel/ PowerPoint/ HTML document as a template and uploading to ReportBox portal. Your application either sends data to ReportBox or ReportBox can pull data from your application database, which is then merged with the template to produce the finished report. Please note that I work for GreenThoughts.
I am planning to explore on QR code generation . I saw the google api http://chart.apis.google.com/chart?cht=qr&chs=75x75&chl=test and its pretty impressive. But it works only for URL's and small data's. So i am thinking about writing a .net app to generate the QR code. So any information on libraries to start with ,will be helpful.
Thanks,
It does not just work for URLs. You can put whatever text you want as an argument (just URL-encode it correctly). It also works for any data size that QR codes can support.
How to do a mail merge in asp.net without installing word on the server?
any dlls or any components available?
Edits
The template document is already available. im not trying to create a word document. Just want to link the word document with the data.
Thanks
Personally, I would just look at using the System.Net.Mail class and its templating abilities. There is a nice library here: https://github.com/lukencode/FluentEmail which you can pass templates into and send emails that way with the data you require inserted into it.
EDIT: noticed you didn't actually specify whether it was print mailmerge or email, apologies if it is a print mailmerge you are trying to create, but for mass emailing with customized data in it, templating is definitely the way to go.
To accomplish the Word doc creation part of the question there is a previous thread about this: How can a Word document be created in C#?
To send the completed doc check out the System.Net.Mail namespace: http://msdn.microsoft.com/en-us/library/system.net.mail.aspx or if you can afford it I have had great experience with http://www.aspnetemail.com/.
We use Aspose.Words to perform mail merges from .net code. It's not cheap but once you get to grips with it it's very powerful.
Edit: I'm assuming you are looking to merge data from some sort of data store into a template word document which can be printed and distributed.
Another option is Docentric Toolkit. It is pure .NET and based on OpenXML without any dependency on MS Word, so it is a good fit for server side report generation.
Merging with data is done through placeholders, which get filled up with data at run time. Data can come from database or XML.
Templates are created in MS Word which needs Docentric Toolkit add-in installed (license is needed).
It is really easy to create templates and to merge them with data from .NET code.
I have to generate downloadable good looking pdf reports containing text and chart based data for a commercial application. I found out itextsharp library ( http://itextsharp.com/ ) but it isn't as powerful as I expect.
What components do you use for this kind of requirements? The price is important for me too. I'd be grateful for your advices.
Thanks in advance,
Have a look at Aspose.PDF or alternatively Tallcomponents. Not sure if they support generating charts out of the box, but for that you could other libraries like DotNetCharting or XtraCharts.
If you are ok to look for commercial solutions for PDF then I would suggest PageFlex. It is very powerful. Check that if it suits your needs.
I have used ActivePdf in the past to generate reports which contained all types of charts and data. Basically it takes an html page and converts it to PDF so we just had to develop HTML versions of the reports and then if the user wanted a pdf version we just had to create a PDF from the html version of the report. The ActivePdf server had its quirks but it did solve the problem quite well.
DocRaptor.com is a great tool for generating pdfs from HTML. It uses Prince XML, and that quality is hard to beat.
I have a dotx file which contains placeholders to be replaced with DB values including Image place-holders.
Should I convert dotx file to docx first and then replace the placeholders in my .net application?
Or there is some other way to do same.
Please guide.
Thank you!
For my current scenerio,
I will be using Aspose library to do doc/docx/dotx manipulation and then finally converting the result document to pdf after mail merge. I have downloaded the free 30-days trial version and it seems to solve all my issues.
I would suggest anyone going to use Aspose to have the trial version first and then making the decision.