Link to home
Start Free TrialLog in
Avatar of oosterbaan
oosterbaan

asked on

Printing documents

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 !!!                                
ASKER CERTIFIED SOLUTION
Avatar of Paebdb
Paebdb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fayeb
fayeb

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.
Avatar of oosterbaan

ASKER

This question has a deletion request Pending
This question no longer is pending deletion
Before deleting I would like to know whats wrong with our comments ?
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 !!!
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 !
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
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
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.
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 !!!
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.