Solved

Printing documents

Posted on 2000-03-15
12
177 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
 
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
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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

15 Experts available now in Live!

Get 1:1 Help Now