The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Word Forum > Word VBA Programming
  Chat In Use Now! Microsoft Office Chat Online now!


Word VBA Programming Post questions in this forum if they are related to using Microsoft Word VBA Programming, Macro's etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 7th July 2009, 05:29 PM
JeffP->
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Merge TIF Image from SQL 2K Blob

------ Register to get rid of these "In Post" ads! ------


Since I can save/stream my TIF files into an SQL database, I want to know if
I can then merge (un-attended printing similar to a right-click print via an
automated process), I'm exploring if there is a way to print the TIF files
stored as blobs?
Reply to this post


Did you find this post helpful? Yes | No

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 8th July 2009, 09:09 AM
Cindy M.
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Merge TIF Image from SQL 2K Blob

------ Register to get rid of these "In Post" ads! ------


Hi JeffP->,

> Since I can save/stream my TIF files into an SQL database, I want to know if
> I can then merge (un-attended printing similar to a right-click print via an
> automated process), I'm exploring if there is a way to print the TIF files
> stored as blobs?


I'm guessing you're asking whether you can pick up images from a database for a
Word mail merge? The answer is: no. There's a workaround where you can have
them as files and use the file name in the database to bring them into the
merge result, but that's the only possibility.

Word was designed (some twenty years ago!) to work with files on disk. The only
"streaming" capability it has is inserting something from the Clipboard (which
isn't an option in mail merge).

FWIW it should be possible for you to "stream" the blob to the clipboard and
from there Paste it into a document (or almost any graphics program), then
print. But that's not something a VBA group is going to be able to help you
with :-)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 9th July 2009, 03:13 PM
JeffP->
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Merge TIF Image from SQL 2K Blob

------ Register to get rid of these "In Post" ads! ------


Cindy,

I'm merging data but it's a single record COM call to word and an addin
negotiates the dde to GoldMine's data channel, word pops up and minimizes. I
use DocProp to lookup in an INI file my doc's SQL sProc passing the one
AccountNo, from that sProc I'm able to retrieve information not stored in GM.

I use a similar copy paste in Excel to copy data retrieved into a range and
paste it into a named template, I'm hoping that it's similar, but I'm not
familiar with the prospect of streaming to the clipboard. Ironically I
already have asp.dot.net webpages scripted to enable our data imputters to
scrub the TIF files scanned from Kofax AC 8x. Current they are stored in a
folder (all 83k of them) and growing each day, so far so good, but I know I
need a better solution, perhaps a Kofax VAR has a solution... Ironically the
TIF files are only printed One Time!

You noted that this NG would most likely not be able to assist with
streaming to the clipboard, can you suggest one that may have better
prospects?

respectfully, JeffP->

"Cindy M." wrote:

> Hi JeffP->,
>
> > Since I can save/stream my TIF files into an SQL database, I want to know if
> > I can then merge (un-attended printing similar to a right-click print via an
> > automated process), I'm exploring if there is a way to print the TIF files
> > stored as blobs?

>
> I'm guessing you're asking whether you can pick up images from a database for a
> Word mail merge? The answer is: no. There's a workaround where you can have
> them as files and use the file name in the database to bring them into the
> merge result, but that's the only possibility.
>
> Word was designed (some twenty years ago!) to work with files on disk. The only
> "streaming" capability it has is inserting something from the Clipboard (which
> isn't an option in mail merge).
>
> FWIW it should be possible for you to "stream" the blob to the clipboard and
> from there Paste it into a document (or almost any graphics program), then
> print. But that's not something a VBA group is going to be able to help you
> with :-)
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
>
>

Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #4 (permalink)  
Old 9th July 2009, 03:34 PM
Cindy M.
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Merge TIF Image from SQL 2K Blob

------ Register to get rid of these "In Post" ads! ------


Hi JeffP->,

> You noted that this NG would most likely not be able to assist with
> streaming to the clipboard, can you suggest one that may have better
> prospects?


I'm going to start with this, as I'm not sure there's much else I can
offer...

Depending on the programming language you're using, any group that
assists in working with the Windows API. You mention .NET :-) If you're
using the .NET Framework, then start with Clipboard.GetDataObject (I'm
not sure what namespace that's in).

> I'm merging data but it's a single record COM call to word


To give you options, it would really help to know which version of Word
is involved. What's available varies tremendously, according to the
version.

In a general sort of way, I suspect you'd be best off generating files
without any COM calls to Word at all. Instead, use the Office Open XML
file format to create the files. This is the 2007 file format, but
there's a "Compatibility Pack" that can be installed for 2000 and later
that will allow opening 2007 files. You'll find more on that at
OpenXMLDeveloper.org

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)

Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
blob, image, merge, sql, tif


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent