Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2020, 03:47 AM
pacojones pacojones is offline Generate QR Code in Word 2010 Windows 10 Generate QR Code in Word 2010 Office 2010
Novice
Generate QR Code in Word 2010
 
Join Date: Nov 2020
Posts: 2
pacojones is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 11-02-2020, 11:28 AM
Charles Kenyon Charles Kenyon is offline Generate QR Code in Word 2010 Windows 10 Generate QR Code in Word 2010 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #3  
Old 11-02-2020, 11:36 AM
Charles Kenyon Charles Kenyon is offline Generate QR Code in Word 2010 Windows 10 Generate QR Code in Word 2010 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #4  
Old 11-03-2020, 05:43 AM
pacojones pacojones is offline Generate QR Code in Word 2010 Windows 10 Generate QR Code in Word 2010 Office 2010
Novice
Generate QR Code in Word 2010
 
Join Date: Nov 2020
Posts: 2
pacojones is on a distinguished road
Default

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?
Reply With Quote
  #5  
Old 11-03-2020, 12:28 PM
Charles Kenyon Charles Kenyon is offline Generate QR Code in Word 2010 Windows 10 Generate QR Code in Word 2010 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate QR Code in Word 2010 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 QR Code in Word 2010 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
Generate QR Code in Word 2010 [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft