Issue 14945 - Fields that use a drop down box do not appear on printed form
Summary: Fields that use a drop down box do not appear on printed form
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-27 11:21 UTC by phillg
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example form that will not print field when dropdown=yes (14.63 KB, application/octet-stream)
2003-05-29 11:35 UTC, phillg
no flags Details
PDF print of output when dropdown=no (41.47 KB, image/pdf)
2003-05-29 11:36 UTC, phillg
no flags Details
PDF print of form when dropdown=yes for selected fields (41.50 KB, image/pdf)
2003-05-29 11:37 UTC, phillg
no flags Details
Text file to be loaded as datasource "Members" (7.23 KB, application/octet-stream)
2003-05-29 11:51 UTC, phillg
no flags Details
stripped down the bug case (8.26 KB, application/octet-stream)
2003-05-30 10:03 UTC, Frank Schönheit
no flags Details
similar stripped down file but it prints (5.96 KB, application/octet-stream)
2003-06-04 16:42 UTC, phillg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description phillg 2003-05-27 11:21:10 UTC
How to reproduce:
Using any form change a Combo-box or Date field to use a drop down box.  When
you print the page the data inside the field will not be printed.  If you turn
the "drop down" option off then the data prints out fine.

This has been tested on v. 1 - 1.1 beta 2.  (Sorry Frank, this must be a
duplicate but I can't find it under any IZ searches)
Comment 1 Frank Schönheit 2003-05-28 12:42:52 UTC
correcting priority (see
http://www.openoffice.org/issues/bug_status.html#priority - sorry,
phill, but we're not talking 'about crashes or loss in functionality
of a complete area)
Comment 2 Frank Schönheit 2003-05-28 12:52:46 UTC
Phill, I have a problem reproducing this on Windows, with OOo 1.1 Beta
2. Following your instructions, I
* open a new text document
* insert a date control
* set it's drop down property to "yes"
* switch off the design mode
=> the control is automatically filled with the current date
* print the document
=> the default date in the control is automatically printed.

Similar for a combo box bound to an arbitrary Bibliography/biblio column.

What am I doing differently? Do you mind adding a document which shows
the bug?
Comment 3 phillg 2003-05-29 11:35:47 UTC
Created attachment 6512 [details]
Example form that will not print field when dropdown=yes
Comment 4 phillg 2003-05-29 11:36:45 UTC
Created attachment 6513 [details]
PDF print of output when dropdown=no
Comment 5 phillg 2003-05-29 11:37:20 UTC
Created attachment 6514 [details]
PDF print of form when dropdown=yes for selected fields
Comment 6 phillg 2003-05-29 11:51:37 UTC
Created attachment 6515 [details]
Text file to be loaded as datasource "Members"
Comment 7 phillg 2003-05-29 11:57:26 UTC
I've uploaded a small version of the database that needs to be loaded
as a datasource called "Members".  You can then use the Operative form
to see what I mean as far as the fields not printing.  Just in case
that isn't possible there are two prints (using a pdf printer) that
show with (OPS-threedrop) and without (OPS-nodrop) dropdown=yes for
the two fields DOB & Date Graded.

I have tried to workout why this is happening but with no luck.  I can
reproduce it on several independent machines but using this already
exisiting forms.  I have created a form from scratch and it worked as
expected :-(  I'll keep looking to what is making it disappear on this
form and selected others too...
Comment 8 phillg 2003-05-29 12:44:46 UTC
Forgot to rename spreadsheet!  Sheet1 should be renamed to Operatives
Comment 9 Frank Schönheit 2003-05-30 10:03:15 UTC
Created attachment 6539 [details]
stripped down the bug case
Comment 10 Frank Schönheit 2003-05-30 10:04:00 UTC
The new attachment is stripped down - it does not bind to a data
source anymore, and contains a reduced number of controls for easier
debugging.

grabbing the issue for myself
Comment 11 marc.neumann 2003-06-04 15:19:38 UTC
set target to OOo 2.0
Comment 12 phillg 2003-06-04 16:41:27 UTC
I have just ran some tests by creating a new form from a blank
document and the fields print okay.  It is pretty much identical to
your stripped down version, only difference is it does print.  I
looked at the content.xml file but they are practically identical... :-(
Comment 13 phillg 2003-06-04 16:42:50 UTC
Created attachment 6664 [details]
similar stripped down file but it prints
Comment 14 Frank Schönheit 2003-06-04 17:37:14 UTC
I'll try to have a look at this before my vacation - I'd be eager to
fix this for 1.1, because without knowing about the reasons, we can't
be sure if it hits 0.01 or 99 percent of the users/form documents.
Comment 15 Frank Schönheit 2003-06-06 10:22:43 UTC
the key is the  background color. A drop-down combo box, which has a
background color other than "standard", does not print it's content.

fs->mt: the problem is in ComboBox::Draw: If it's a drop-down box, it
_first_ draws the text (resp.: it lets it's sub-edit draw), and then
does everything else. This "everything else" includes drawing the
background, if necessary - which overwrites the text.
I tried moving the drawing of the text from the beginning of the
method to the end, and this seemed to work well. From my
understanding, this should be a good solution, but there may be side
effects which I do not see. Could you please have a look at this?
Would be really cool if we get this in the 1.1 time frame :)
Comment 16 phillg 2003-06-06 10:52:45 UTC
Frank, once again you've done it!  I'm so impressed with the speed you
manage to solve this crazy issues.  Thanks so much!  P h i l l
Comment 17 malte_timmermann 2003-06-06 14:57:19 UTC
I'll check that...
Comment 18 malte_timmermann 2003-06-10 15:23:28 UTC
Fixed...
Comment 19 malte_timmermann 2003-06-11 10:13:08 UTC
MT->MSC: Please verify and close
Comment 20 marc.neumann 2003-06-12 08:01:55 UTC
set to fixed
Comment 21 marc.neumann 2003-06-12 08:02:32 UTC
verified in CWS vcl12
Comment 22 marc.neumann 2003-07-01 08:53:23 UTC
close, because it's fixed in OOo 1.1 RC
Comment 23 hans_werner67 2004-02-02 12:33:30 UTC
change subcomponent to 'none'