Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use report viewer to make a printable form filled out from a database entry. I have already setup the database connection, datasets and queries and linked them to the report. When I try to render the report some of the fields are filled out correctly and others are missing. For instance one part has the customer's information and although I've verified that all of the fields have a proper value, the report only shows the customer's address, city, state and zipcode. The two phone numbers, name and second address line are left blank. I've already tried completely removing the form and data sets from the project and creating them from scratch with exactly the same results. What am I doing wrong?
Posted
Comments
CHill60 31-Jan-16 18:19pm    
I'm sorry ... I can't see your screen, examine your HDD nor read your mind. I really can't tell what you are doing wrong. I'm guessing that you may have some misspelled field names ... do you have spaces in the field names? If so, get rid.
Member 12207410 2-Feb-16 20:23pm    
Some field names did indeed have spaces however the report would not compile so I changed the names to remove the spaces. Also, I added my dataset tables to the report and dragged the fields into the report body from the toolbar so there should not have been any sort of typo. I did however fine an alternate means of creating my form through the use of a printer class rather than the reportviewer.
Sangani Viral 2-Feb-16 16:11pm    
I do not understand what you are trying to do. It would be better if you could attach a screenshot of what is happening.
Member 12207410 2-Feb-16 20:20pm    
I don't see how to add a screenshot, and I freely admit I could have missed it. For what I was trying to do though, I found another solution using a class that made it much easier to use the printing capabilities of VB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900