Print view does not print data values

M

mcchu

Hi,

Thanks for replying.

I need to find out the reason why using a print view setup through the
wizard.hta does not print any values.

I set up the default view (View 1) to use the designate print view which i
got from the previous step.

I published the form. And then fill out the form and save it. I then go
print(print preview is not available). No data is shown on the print page.
 
M

mcchu

To add on to the previous message, I also found out that the word based print
view when used in Word also has the same problem. No data values show up.
The XSLT transformation to display the form data does not work for some
reason.

I already registered 3 .dlls namely WordPrint.dll, ImageDecode.dll, and
html2xhtml.dll using regsvr32.exe on the command line.
 
M

mcchu

I also realized that when a saved form (.xml) is opened in Word, the default
XML Data View is Data only. And it actually shows all the data. Now if I
browse to and add the view which was extracted from InfoPath form, it also
works too. However, when I added the word based print view, it does not show
any form field values.

I am really puzzled as to why the data does not show on the word document as
well in InfoPath, as mentioned in previous post.
 
B

Brian Teutsch [MSFT]

You'll need to examine the XSL file created by the wizard. The lack of data
you are seeing is probably because the XSL isn't selecting the XML data
correctly. I can suggest that you might not have included the full heirarchy
of XML elements you wanted in your Word document. Unfortunately, the tool is
in the SDK for a reason, and there is some understanding of XSL that will be
valid to help you create the Word HTML with your data.

Brian
 
M

mcchu

Hi Brian,

Your guess is correct. I added the main element to look like the following
<my:myFields><my:Field1></my:Field1></my:myFields>
instead of <my:Field1></my:Field1>. It works great. Thanks a lot.

Now I am having problems in displaying multiple elements. If I put onto
another line such that I like to display my second field
<my:myFields><my:Field2></my:Field2></my:myFields>. It does not work. What
could be the problem here?


I realize in the SDK it does not say much about how to use the XML Structure
task pane in word. Please advice how I can get more information on
displaying elements such as formatting and using the elements in tables.
 
M

mcchu

I am also having problems in displaying a repeating field in a table. If I
put the following into a table, it does not work.
Row 1:
<my:myFields><my:Group1><my:Field2></my:Field2></my:Group1></my:myFields>.

my:Group1 is the repeating element and my:Field2 is an element under
my:Group1.

Please advice on how to display repeating nodes in a table.
 
B

Brian Teutsch [MSFT]

Sorry, but I don't have a whole lot more general advice. If you don't have a
good understanding of XSL you will probably struggle - as you're seeing. For
instance, the root node really should be at the root of your XSL, not
immediate around each field. Also, the root of your repeating table needs to
be outside the table, with the repeating groups around each table row and
the idividual nodes inside.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top