Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8224357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:02:39+00:00 2026-06-07T15:02:39+00:00

I have a asp.net mvc application and my Views are in HTML5. I need

  • 0

I have a asp.net mvc application and my Views are in HTML5. I need to print a view as a report. This View shows some data with <table/> tag and it is formatted with css style as font-family, font-size, text-align properties etc. When I try to print it with Chrome (exporting to PDF) my css does not work, I mean, the print’s result is shown without formating.

What can I do to solve this problem? It Does not matter whether I use css to apply the style or use html tags to format the page, but I wish it would leave the impression formatted.

PS: I would like to keep the html valid document.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:02:41+00:00Added an answer on June 7, 2026 at 3:02 pm

    You can use different styles for screen and print media in your style sheet, i.e.

    @media screen
    {
        table.test {
            font-family:"Times New Roman",Georgia;
            font-size:10px;
            // more
        }
    }
    
    @media print
    {
        table.test {
            font-family:Verdana, Arial;
            font-size:10px;
            // more
        }
    }
    

    When you’ll print the table only styles defined in print media will be applied.

    Check this for more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 5 views in my ASP.NET MVC application. Some data were captured from
In the asp.net mvc 3 application I have two views which have the same
I am developing an ASP.Net MVC 3 Web application using Razor Views. I have
I have an ASP.NET MVC application using Authorization Attributes on Controllers and Actions. This
I have an ASP.NET MVC 3 application. I need to implement a file uploader
This is the situation: I have an ASP.NET MVC 4 application. When I run
I have a weird need in an ASP.NET MVC 3 application which blocks my
I have an Asp.net MVC application which uses html5 and jquery on the client
I have asp.net mvc application, that uses razor view engine. I want to send
I have an ASP.NET MVC application. I am having multiple drop-down list in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.