Guest User

Untitled

a guest
Jul 15th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <%@ Page language="vb" debug=true %>
  2. <%@ Import NameSpace = "Zxing.Interop.Encoding.BarcodeWriter" %>
  3. <%@ Import NameSpace = "System.IO" %>
  4. <%@ Import NameSpace = "System.Drawing" %>
  5.  
  6. '-----------------------------------------------'
  7. 'QR-Code
  8. '-----------------------------------------------'
  9. Dim ZX As New ZXing.BarcodeWriter
  10. Dim bmp As Bitmap
  11.  
  12. Zx.Format = ZXing.BarcodeFormat.QR_CODE
  13. Zx.Options.Height = 250
  14. Zx.Options.Width = 250
  15. Zx.Options.Margin = 0.9
  16. Zx.Options.PureBarcode = True
  17. Zx.Format = 2048
  18.  
  19. bmp = Zx.Write("Test_1234")
  20. bmp.Save("c:inetpubwwwroottesterqrcode.png", Imaging.ImageFormat.Png)
  21. '-----------------------------------------------'
  22.  
  23. Zx.Options.ErrorCorrection = ErrorCorrectionLevel_H
  24.  
  25. Zx.ErrorCorrection = ErrorCorrectionLevel_H
  26.  
  27. ErrorCorrection = ErrorCorrectionLevel_H
  28.  
  29. Compiler Error Message: BC30456: 'ErrorCorrection' is not a member of 'ZXing.Common.EncodingOptions'.
  30.  
  31. Filename: zxing.dll
  32. File Description: Zxing.net for 3.5
  33. File Version: 0.16.4.0
  34. Sha256 Hash: e1ed37bb6d376a35a05169a6bad52c6d589eac3bc3d676fc4ed6336e84d59fea
  35.  
  36. <%@ Page language="vb" debug=true %>
  37. <%@ Import NameSpace = "System.Drawing" %>
  38. <%
  39.  
  40. '-----------------------------------------------'
  41. 'QR-Code
  42. '-----------------------------------------------'
  43. Dim ZX As New ZXing.BarcodeWriter
  44. Dim bmp As Bitmap
  45. Dim options as ZXing.QrCode.QrCodeEncodingOptions
  46.  
  47. options = New ZXing.QrCode.QrCodeEncodingOptions
  48. options.ErrorCorrection = ZXing.QrCode.Internal.ErrorCorrectionLevel.H
  49. options.Height = 250
  50. options.Width = 250
  51. options.Margin = 0.9
  52. options.PureBarcode = True
  53.  
  54. Zx.Format = ZXing.BarcodeFormat.QR_CODE
  55. Zx.Options = options
  56.  
  57. bmp = Zx.Write("Test_1234")
  58. bmp.Save("c:inetpubwwwroottesterqrcode.png", Imaging.ImageFormat.Png)
  59. '-----------------------------------------------'
  60. %>
Add Comment
Please, Sign In to add comment