0

I have multiple add-remove input field rows in my form. This is nothing but a report. There is a print button and I want to print only data entered in form in structured manner. Similar like table,column,rows and text but not buttons or input box borders. I tried this for print button

javascript:window.print()

And created classes using

{
  display: none;
  border: none;
}

Wanted to know how to write function where i can collect data and get print view in structured manner on-click Print button.

This is code i am working on

See Plunker

1 Answer 1

1

You should create a print style sheet. There are a number of articles on the web that describe how to create this, but in essence it is a separate stylesheet that allows you to create a separate style for printing, thereby you can hide items, change font sizes, remove borders etc when the html page is printed. I think this might help you solve your problem. A search result here: tips-and-tricks-for-print-style-sheets

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.