Skip to main content
ZaraaZaya
Inspiring
December 28, 2017
Answered

How to update QRCode

  • December 28, 2017
  • 1 reply
  • 855 views

Hello Dears,

I don't know how to select frame to create QRCode.

I can create QRCode in selected Frame. But I can't define another Frame contains QRCode.

      app.activeDocument.selection[0].createPlainTextQRCode("ABC01234567D","Black");

I can't execute following script.

     QRFrame = app.activeDocument.pages.item(0).textFrames.itemByName("BarCode").select();

     QRFrame.createPlainTextQRCode("ABC01234567D","Black");

How to change " app.activeDocument.selection[0] " to Image Frame named that BarCode.

Please help me

This topic has been closed for replies.
Correct answer ZaraaZaya

Thanks All,

It resolved by following script.

    app.activeDocument.pages.item(0).rectangles.item(0).createPlainTextQRCode("ABC01234567D","Black");

But I can`t still change by ItemName.

1 reply

Community Expert
December 28, 2017

Hi zayab8638628 ,

your = in your code is the wrong one.

It's unicode value is FF1D.

You need the = with unicode 3D00.

With an ordinary = your code is working.

EDIT: I did not test your QRCode line. Just the part that is selecting a text frame who's name is "BarCode".

Regards,
Uwe

ZaraaZaya
ZaraaZayaAuthor
Inspiring
January 4, 2018

Happy new year!

Thanks Dear Laubender. I can`t run this code. if run following code, error in occur that Object is invalid.

app.activeDocument.pages.item(0).textFrames.itemByName("BarCode").select();

May be BarCode isn`t TestFrame. I don`t know how to change it

ZaraaZaya
ZaraaZayaAuthorCorrect answer
Inspiring
January 4, 2018

Thanks All,

It resolved by following script.

    app.activeDocument.pages.item(0).rectangles.item(0).createPlainTextQRCode("ABC01234567D","Black");

But I can`t still change by ItemName.