S = dmx_gen(code, IIf(params = 1, "ASCII", "" ))Ĭase 51 ' QRCode params: ECLevel 0=M 1=L 2=Q 3=H ![]() ' params extended charset 2 = disabled, 1 = always, 0 = automaticalyĬase 50 ' DataMatrix params: 1 = force ASCII encoding If IsMissing(pbctype) Then bctype = 0 Else bctype = pbctype If IsMissing(pgraficky) Then graficky = 1 Else graficky = pgraficky If IsMissing(pparams) Then params = 0 Else params = pparams If IsMissing(pzones) Then zones = 2 Else zones = pzones Optional pparams%, Optional pzones%) As Stringĭim s$, bctype%, graficky%, params%, zones% Public Function EncodeBarcode(ShIx As Integer, xAddr As String, _Ĭode As String, pbctype%, Optional pgraficky%, _ ' The barcode content (string) -' / | \ `- Protection zone for 1D codes (width) ![]() ' Usage: EncodeBarcode(CELL("SHEET") CELL("ADDRESS") A2 1 1 0 2) ' MS: EncodeBarcode(POLICKO("SHEET") POLICKO("ADDRESS") A2 1 1 0 2) If VarType(Asc( "A" )) = 2 Then IsMs = True Else IsMs = False Rem Bug fixes in qr_gen by JonasHeidelberg, see 41404226 /why-does-this-vba-generated-qr-code-stutter-barcode-vba-macro-only Rem Some code comments translated from Czech into English using an online translator by JonasHeidelberg - careful, might be quite wrong IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Rem THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. Rem The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Rem Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software" ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Rem This software is distributd under The MIT License (MIT)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |