Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

For those following the 'using QR codes to pass Safari address & parameters into FM GO' to launch it discussions, I have done a quick script to create the QR code and return the image to a container using the itextpdf library..(needs 5.02.jar)

Only have a 'Touch' not a 'Phone' so if anyone want to test this works it would be brilliant...


//QRimg(fm_content)

//2010_09_25 JR

//v1

//takes path and text from fm_content and returns image to container

//requires itextpdf.jar 5.02 from itextpdf.com



import java.awt.image.*

import com.itextpdf.text.*

import com.itextpdf.text.pdf.*



qr = new BarcodeQRCode(fm_content, 1, 1, null)

img = qr.createAwtImage(java.awt.Color.BLACK, java.awt.Color.WHITE)

int w = img.getWidth()

int h = img.getHeight()

bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB)

g2 = bi.createGraphics() 

g2.drawImage(img, 0, 0, w, h, null); 

g2.dispose()

return bi

  • 6 months later...
  • Newbies

Hi John,

I built this into an FM app I'm working on for a local museum that wants to add QR codes on the tags placed near the art objects, so that you can scan the code then have your browser take you to a web page with info about the object. Tested the QR code with an iPhone app called QRReader and it works well. Will test on an Android-based phone a little later and will post the results.

  • 1 month later...

ANy chance you have a Datamatrix barcode working???

  • Author

Just so happens I have updated my demo file this week

So here is is

Three layouts

FMP7 QR codes for use with Go

QR codes with a web address

Datamatrix code

John

Update

do not seem to be able to upload files

if anyone can fix this first then you can gladly have it.....

  • Author

For now here is the code


//DataMXimg(fm_content)

//2011_05_15 JR

//v1

//takes content from fm_content and returns image to container

//requires min itextpdf.jar 5.02 from itextpdf.com



import java.awt.image.*

import com.itextpdf.text.*

import com.itextpdf.text.pdf.*



qr = new BarcodeDatamatrix()

qr.generate(fm_content)

img = qr.createAwtImage(Color.BLACK, Color.WHITE)

int w = img.getWidth()

int h = img.getHeight()

bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB)

g2 = bi.createGraphics()

g2.drawImage(img, 0, 0, w, h, null)

g2.dispose()

return bi



Personally I love the zxing library to do that for me. http://code.google.com/p/zxing/

It can also read an image with a QR code in it (even when it is a picture of a building with a QR code on it) and returns the value of the QR code.

Andries

Awesome and thanks

if you have the sample file that would help thanks

  • Author

attached...

EXCEPT you need to change the pdf extension to fp7 as it wont let me upload Filemaker file !!

John

QRcode.pdf

  • 3 years later...
  • Newbies

Personally I love the zxing library to do that for me. http://code.google.com/p/zxing/

It can also read an image with a QR code in it (even when it is a picture of a building with a QR code on it) and returns the value of the QR code.

Andries

 

 

thanks andries, i have used zxing library for barcode, works great for me. and i am also testing other projects: how to create colorful qr code in java.

  • 4 months later...
  • Newbies

Personally I love the zxing library to do that for me. http://code.google.com/p/zxing/

It can also read an image with a QR code in it (even when it is a picture of a building with a QR code on it) and returns the value of the QR code.

Andries

Thank you, i also have used this library for qrcode, it's very useful for me.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.