#1
|
|||
|
|||
Generate QR Code in Word 2010
Hi all,
I was assigned to a task where I must generate a QR code for a given string on a word template (.dotx). This is consumed inside C# by opening the word shell and sending an XML in order to fulfill the word template. The point is that the license is Office 2010... not pretty sure what can I achieve. I've read that - I can install a custom font, but since word is letter based, then each letter will have its QR code - I can't achieve this at all on word 2010 - I can achieve it if I use an external API (such as Google) and embeb the image inside my word template My doubt here is what can I do exactly. Am I able to generate out of the box qr codes inside my word template? I would like to go to a solution that didn't imply calling external APIs, the QR code represents som sensitive/legal information... Another question, If we moved forward to Office 2013, could we overcome this situation? Thank you very much |
#2
|
|||
|
|||
The third option - image file embedded - is viable. You can use any third-party application to generate these. You could also use Word 2013 and a screen capture utility to generate such images for use in Word 2010.
Office 2013 introduced the DISPLAYBARCODE and MERGEBARCODE fields which handle this easily. Word 2010 has no native way to generate or use these fields. Here is a link to my free Add-In which generates such codes in Word 2013 or later: Bar Code Add-In. You do NOT need the Add-In to generate these codes, though. |
#3
|
|||
|
|||
Staying in Word 2010, you may want to use a utility to do a merge with the images. See Mail merge graphics by Graham Mayor, MVP.
|
#4
|
|||
|
|||
Hi all, thank you guys for your help.
After checking with other folks that are doing more or less the same development we are trying to move on with generating an image before calling winword.exe. Right before we call winword.exe process inside C#, we are generating the QR code and saving it locally as file. There are many requests per second, so the image cannot be the same, it will have a specific ID per image. Now this may be more C# than word, but when we are calling winword.exe, we are sending an XML with the information that will fulfill bookmarks, and I'd like to have some sort of image object inside Word, and when applying the XML, that image assumes the path that is sent on the XML. We are trying unsuccessfuly to make this work, is this possible? |
#5
|
|||
|
|||
We do not have all that many C# programmers here. This is a Word user-to-user support forum. This might be more appropriately posted on Stack Overflow - Newest 'ms-word' Questions - Stack Overflow or Newest 'c#' Questions - Stack Overflow.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
One word document to generate two different versions? | CousinLarry | Word | 1 | 07-14-2016 12:28 AM |
Problems adding VBA code to word 2010! | spookiepower | Word VBA | 1 | 02-10-2014 09:08 AM |
Generate sequential code tags | ssarank | Word VBA | 3 | 12-25-2013 02:44 AM |
Using Word/OL 2010 to generate personalized email messages | rickr44318 | Word | 0 | 06-26-2013 06:34 AM |
[How To] Generate Alpha Numeric Values in Excel 2010 | stnicholas81 | Excel | 1 | 07-25-2011 01:31 AM |