Telegram Group & Telegram Channel
This media is not supported in your browser
VIEW IN TELEGRAM
Создаём QR-код в Таблице и Документе

Друзья, привет! В Таблицах QR-код создаётся формулой, которую нужно ввести в ячейку, как это сделать, мы рассказывали вот здесь: https://www.tg-me.com/vn/Google Таблицы/com.google_sheets/912

А чтобы добавить QR в Google Документ нужен скрипт, например тот, который будет ниже.

Что скрипт делает:
1) ищет в тексте документа "###"
2) находит и вставляет вместо "###" QR-код, созданный из ссылки www.tg-me.com/google_sheets
3) изменяет размеры изображения на 75 и 75 пикселей
4) и добавляет к самой картинке исходную ссылку


function createQRCode() {
var Doc = DocumentApp.getActiveDocument();
var totalElements = Doc.getNumChildren();

for (var j = 0; j < totalElements; ++j) {
var element = Doc.getChild(j);
el = element.getText();

if (el == '###') {
element.removeFromParent();

var url = 'www.tg-me.com/vn/Google Таблицы/com.google_sheets';
var blob = UrlFetchApp.fetch("https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=" + encodeURIComponent(url)).getBlob();

Doc.insertImage(j, blob)
.setHeight(75).setWidth(75)
.setLinkUrl(url)
};
};


PS Конечно, вы можете собрать ссылку из того, что есть в документе, например, искать с помощью регулярного выражения номер договора, соединять его с "ссылкой/" в коде и из этого формировать QR-код.

Документ со скриптом



tg-me.com/google_sheets/1342
Create:
Last Update:

Создаём QR-код в Таблице и Документе

Друзья, привет! В Таблицах QR-код создаётся формулой, которую нужно ввести в ячейку, как это сделать, мы рассказывали вот здесь: https://www.tg-me.com/vn/Google Таблицы/com.google_sheets/912

А чтобы добавить QR в Google Документ нужен скрипт, например тот, который будет ниже.

Что скрипт делает:
1) ищет в тексте документа "###"
2) находит и вставляет вместо "###" QR-код, созданный из ссылки www.tg-me.com/google_sheets
3) изменяет размеры изображения на 75 и 75 пикселей
4) и добавляет к самой картинке исходную ссылку


function createQRCode() {
var Doc = DocumentApp.getActiveDocument();
var totalElements = Doc.getNumChildren();

for (var j = 0; j < totalElements; ++j) {
var element = Doc.getChild(j);
el = element.getText();

if (el == '###') {
element.removeFromParent();

var url = 'www.tg-me.com/vn/Google Таблицы/com.google_sheets';
var blob = UrlFetchApp.fetch("https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=" + encodeURIComponent(url)).getBlob();

Doc.insertImage(j, blob)
.setHeight(75).setWidth(75)
.setLinkUrl(url)
};
};


PS Конечно, вы можете собрать ссылку из того, что есть в документе, например, искать с помощью регулярного выражения номер договора, соединять его с "ссылкой/" в коде и из этого формировать QR-код.

Документ со скриптом

BY Google Таблицы


Share with your friend now:
tg-me.com/google_sheets/1342

View MORE
Open in Telegram


Google Таблицы Telegram | DID YOU KNOW?

Date: |

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

How to Invest in Bitcoin?

Like a stock, you can buy and hold Bitcoin as an investment. You can even now do so in special retirement accounts called Bitcoin IRAs. No matter where you choose to hold your Bitcoin, people’s philosophies on how to invest it vary: Some buy and hold long term, some buy and aim to sell after a price rally, and others bet on its price decreasing. Bitcoin’s price over time has experienced big price swings, going as low as $5,165 and as high as $28,990 in 2020 alone. “I think in some places, people might be using Bitcoin to pay for things, but the truth is that it’s an asset that looks like it’s going to be increasing in value relatively quickly for some time,” Marquez says. “So why would you sell something that’s going to be worth so much more next year than it is today? The majority of people that hold it are long-term investors.”

Google Таблицы from vn


Telegram Google Таблицы
FROM USA