Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Printing documents

Posted on 2000-03-15
12
181 Views
Last Modified: 2013-12-18
Hi experts,

I have designed a form in a database. The backgroundcolor of this form is dark (blue) and the characters are white. When users printing this form, the background and the characters
becomes black....so not readable. Is it possible to force the form while printing in black and white (or other colors) ?

Greetings Bob !!!                                
0
Comment
Question by:oosterbaan
  • 5
  • 4
  • 3
12 Comments
 
LVL 2

Accepted Solution

by:
Paebdb earned 50 total points
ID: 2619058
There is the possibility to create a copy of the form which has a white background and black letters (or any combination you like and is readable).
Than you create a button "Print" with following formula:
@Command([FilePrint] ;  ;  ; ; ; ; "formName" ;  ; ; ; )

You can also set the other parameters as you need them, but important is the formname. With it the current document is printed with a different form, in your case the newly copied one.
0
 

Expert Comment

by:fayeb
ID: 2619401
I have this problem with a specific printer in my company when printing out a form which has a black background and white text. It works on one printer but not on another.

I am afraid there is nothing you can do about the problem as it is to do with  the rending of the printer.

The option is try a different printer or change the colours on the form.
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 2637768
This question has a deletion request Pending
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 2

Expert Comment

by:Paebdb
ID: 2639277
This question no longer is pending deletion
0
 
LVL 2

Expert Comment

by:Paebdb
ID: 2639278
Before deleting I would like to know whats wrong with our comments ?
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 2639511
There was nothing wrong with your comments, but this wasn't the solution for me.........Your comment about copying a form is not possible, because on this form is a RTField, so i can't copy the value in this field to another form......

Thanks anyway....

Greetings Bob !!!
0
 
LVL 2

Expert Comment

by:Paebdb
ID: 2639576
Then you did not understand what I intended to explain.
You were supposed to make a complete copy of the design of the form and rename it. Then use this form with above formula in a button.
This works !
0
 

Expert Comment

by:fayeb
ID: 2639577
With regards to yuo comment about not being able to copy the value to another form you can.  

Also I think the comments given were fine and deserve some creditation
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 2639627
Listen guys,

I'm willing to give somebody credits...you can have them if you want, but this doesn't solves my problem.

I have a form (colored form) that can be read by all LN users. On this form is a Rich Text Field. This form is filled in by the author. The author don't want to fill in this form twice (one colored version and one black&white). So i thought that i create a button that will create the B/W form automaticly, but i can't inherit the values from the RTF into the copied document !!!

Greetings Bob !!!

Here are you points Paebdb
0
 
LVL 2

Expert Comment

by:Paebdb
ID: 2639664
First of all, I don't want the points for something that did not solve your problem. But if there is a problem, I would like to discuss it.

Second, you are not supposed to copy the document, but the DESIGN of the FORM.

1) go to design, select the form
2) make a copy, rename to "Printform" or whatever you like
3) change in this Printform the colors to something readable
4) in the original form, create an action button with the formula
@Command([FilePrint] ;"";"";"";"";""; "Printform";"";"";"";"")
This will take your document and print it with a different form.

The other options of FilePrint are
@Command([FilePrint] ; numCopies ; fromPage ; toPage ; ifDraft ; ifView ; formName ; breakType ; ifReset; startDate; endDate)

This will be still one document, the user has only to fill one doc, and nothing has to copied in the docs or inherited.
I think you are confusing the words document, form and design of a form.
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 2639836
Hi fayeb,

You are absolutly wright....the credits are earned....but if you can tell me how i can inherit the value of a Rich Text Field into another document, you are my hero (-;

Greetings Bob !!!
0
 

Expert Comment

by:fayeb
ID: 2639923
No prob I had this problem for a long time and finally figured out where I was going wrong.  

Create a form exactly the same as the current form with a different background which can be viewed. Making sure on the new form you have an editable richtext field

You then need to create an agent  as you need to used script or you could create a button called "create form" and place the script in there.  This is how you do it


     Dim ws As New NotesUIWorkspace
     Dim db As NotesDatabase    
     Dim old As NotesUIDocument
     Dim new As NotesUIDocument
     Dim olddoc As NotesDocument
     Dim newdoc As NotesDocument

   old = the current UI Document
   'the form you want to copy from
   new = compose a new ui document
   'the copy of the form with the new background

   'set the field values of the normal text fields etc using fieldSettext

   'Save both of the forms

    Call new.Save
    Call old.Save


  'Declare bith forms a documents using

   Set newdoc = new.Document
   Set olddoc = old.Document

   Copy the rich text field as follows

   'This line gets the rich text item from the field "oldDocfield" on the
   old document and sets it to "rtitem"

    Set rtitem = olddoc.GetFirstItem( "oldDocfield" )
 
    'This line places the rich text item in "rtitem" in the field the field
    "newdocfield" on the new document

    Call rtitem.AppendRTItem( newdocfield )

    Call newdoc.Save(False,True)          
    Call old.Save



This should work if you have any problems let me know.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 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