Solved

Hw to print a notes memo with all attachments togehter at once?

Posted on 2004-09-04
21
206 Views
Last Modified: 2013-12-18
hi,

in the end i want to fax a notes memo with an attachment.

unfortunatelly this faxsoftware doesn't support attachment printing.

to fax e.g. a word document, i can use "print" in any application (like word...) to print it on a fax printer driver.

question:
now i need something that i can press a button "print" and then the notes memo should be printed and also all attachment(s).
if you'd print this to a normal printer you should receive 1 page for the notes memo (assuming the memo is 1 page) and 1 extra page for e.g. a word document.

for testing you could also print to an acrobat pdf file. in this case you should get 1 file including 1 page of the notes memo and one page of the word document.


hope it's clear what i need?
0
Comment
Question by:hreinart
  • 7
  • 5
  • 4
  • +2
21 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Yep, it's clear. Go to www.notestopaper.com and read all about their product, all about high quality printing from Notes. They are in Fulda (D).
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 125 total points
Comment Utility
There is a windows api which can be used to print the attachments. And use normal notes print function to print the doc.

The api code is available at : http://searchdomino.techtarget.com/tip/1,289483,sid4_gci761668,00.html

~Hemanth
0
 

Author Comment

by:hreinart
Comment Utility
hi,

it looks quite well.
just to mention, i changed the click event to:
Sub Click(Source As Button)
      Dim workspace As New NotesUIWorkspace
      Dim uidoc As NotesUIDocument
      Dim doc As NotesDocument
      Set uidoc = workspace.CurrentDocument
      Set doc = uidoc.Document
      Call uidoc.print                          <- new line
      Call PrintAllAttachments(doc)
End Sub

...to print also the memo itself.


i found 2 things i'd need to have changed:

1) a memo with e.g. 2 tiff files will not be printed correctly.
    the memo and 1st tiff is printed well, 2nd and other tiff files aren't printed.
    error: no file extension.
    the error popup contains also a message in the "blue" headline
    unable to print file .....\datatempATTn8636L


2) is there any chance that the memo and all attachments are printed in 1 print-stream?
    reason:
    as written i want to send this print stream in the end to a fax. if receiving e.g. 3 streams i
    create 3 seperate faxes.



thanks
hreinart
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
1. datatempATTn8636L indicates a generated file by notes... this is done if you attach two identical file names . To make it unique notes changes the file name and thus losing the real information of the file.

2. The print stream cannot be multiple. When it comes from a doc based the print job is single and cannot be multiple... Unless you develop a method like extracting the attachments and then issue print for each attachment seperately.. I haven't tried this but a thought.

0
 

Author Comment

by:hreinart
Comment Utility
reg. #1 you're right. the mail included 3 identical files.

regarding #2 could you do this?
is this big work?

0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
I am not sure about #2 it is just a theory and it is a bigger scope than what you have asked for...
0
 

Author Comment

by:hreinart
Comment Utility
... i could ask for if i should initiate it.
would you be able to do this?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
Sorry I haven't got time.. leaving right now and will be back only night.. and back to work from tomorrow.


0
 

Author Comment

by:hreinart
Comment Utility
any other time you could have a look at?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Hemantha, I know someone who always desperately needs points. I missed him in this question...

Sjef ;)

PS Sorry, before you ask me: I don't want to code this.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
Sjef,
Are you not pointing to me right????
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Madheeswar! The very idea! Now, are you insinuating that I'm insinuating? Preposterous.

But anyway, since you're here now, what's your opinion?

Sjef :D
0
 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
I saw in some post, you have commented, I will give code for 500 points.
So, if it is no me, then it should be Arun or it should be Ranjeet(don't get offended/serious).

And regarding this,
I am out of complex coding. this may take lot of resource to write program. And I don't have readymade code.

Jef, why can't you try. or you would be having some resource for the required code.
Don't worry, Hreinart will increase this points to 500.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
Comment Utility
Well it used to be Arunkumar who was always in need of points :-)

To solve your problem with the file extensions, you need to make sure the file names are unique or get the filenames through C API. Unfortunately this isn't that straight-forward as LotusScript and I don't have the time to look into that for the moment.
If you look at the attachment properties in UI you can see the original file name, so it must be possible to retrieve it using the C API. Maybe somebody has done it before?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
I was just kidding, just trying to find out who's watching this question ;)

Sorry, it's almost a rent-a-coder job. As you say, it might take a lot of resources to get it all done. I do have a lot of resource, but not for free. Coding advice is (in EE) for free, very little else. The points are nice, but not adequate for this type of development. If Hreinart would start himself and post the code for our comments? Or just the strategy? WOuld that be an idea?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
About the attachment name: it can easily be found in LotusScript in the Source attribute. When you save to disk, modify the name of the file on disk to accomodate for multiple attachments with the same name.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
Comment Utility
Hm,
I've tested with the source and name property of an attachment.
If the attachment was added manually, both return the notes generated file name and not the original.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Strange. The Source property never failed me for an embedded attachment, not even when manually attached.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
Comment Utility
It's only when the two attachments have an identical name that there are problems. In this case notes will generate an internal unique name and this will be returned by both name and source property.
If file names are different for all attachments everything is OK.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Ah, gotcha. I'll try (some sunny day, but not today). Thanks.
0
 

Author Comment

by:hreinart
Comment Utility
hi,

back from work i see your postings.

you're right the error occured by printing 2 idential attachments in the memo.
i think that this reason was posted before.

regarding the coding.
i see that this looks quite complex.
so it is not intended for ee.

i'll have a closer look at it. in case it's really needed, hwo much would it cost?
when could it be delivered?


best regards
hreinart
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now