Solved

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

Posted on 2004-09-04
21
207 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
ID: 11979451
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
ID: 11985011
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
ID: 11988023
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
ID: 11989506
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
ID: 11989725
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
ID: 11990540
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
ID: 11990843
... i could ask for if i should initiate it.
would you be able to do this?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11991107
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
ID: 11991700
any other time you could have a look at?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11991733
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 19

Expert Comment

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

Expert Comment

by:Sjef Bosman
ID: 11994587
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
ID: 11994623
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
ID: 11994697
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
ID: 11994706
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
ID: 11994722
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
ID: 11994763
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
ID: 11994891
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
ID: 11996863
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
ID: 11997066
Ah, gotcha. I'll try (some sunny day, but not today). Thanks.
0
 

Author Comment

by:hreinart
ID: 11997155
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

16 Experts available now in Live!

Get 1:1 Help Now