?
Solved

Printing documents

Posted on 2000-03-15
12
Medium Priority
?
184 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
[X]
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
  • 5
  • 4
  • 3
12 Comments
 
LVL 2

Accepted Solution

by:
Paebdb earned 150 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

764 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