# Automatic Print fpr BLOB

**URL:** <https://www.dynamicsuser.net/t/automatic-print-fpr-blob/9458>\
**Category:** Developers Forum\
**Created:** [December 7, 2004, 9:11am UTC](https://www.dynamicsuser.net/t/automatic-print-fpr-blob/9458 "2004-12-07T09:11:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FormerMember](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FormerMember](https://www.dynamicsuser.net/u/FormerMember)\
**Post date:** [December 7, 2004, 9:11am UTC](https://www.dynamicsuser.net/t/automatic-print-fpr-blob/9458/1 "2004-12-07T09:11:22Z")

</div>

Hi, I import product decriptions (=word document) in a new defined BLOB-field in the article table. No problem to export them, but has anyone an idea, how this document can be printed automatically, when this article is sold = line in sales invoce. Michael

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://www.dynamicsuser.net/u/David)\
**Post date:** [December 7, 2004, 9:55pm UTC](https://www.dynamicsuser.net/t/automatic-print-fpr-blob/9458/2 "2004-12-07T21:55:59Z")

</div>

It is possible to export the BLOB content to create a word file, but it is also possible to write code to open it or print it using automations variables. In your case, I would suggest that you build a function to extract the file and open it and/or print it. When a user posts an invoice (codeunit 80), you can write some code to look at the lines, and if the line contains an item (Type=Item), you could launch this function. A good example showing you how to use automation is codeunit 424 -Export Analysis View. It is using Excel automation, but this is very similar to using Word. If you need, I can look to find a function I built to open a Word document for one of our customer.
