Click here to Skip to main content
16,004,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: Log file advice? Pin
Rob Philpott24-Jul-24 22:44
Rob Philpott24-Jul-24 22:44 
GeneralRe: Log file advice? Pin
jschell31-Jul-24 14:02
jschell31-Jul-24 14:02 
QuestionTables not appearing as classes Pin
Hesam emami9-Jul-24 23:17
Hesam emami9-Jul-24 23:17 
AnswerRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 2:56
mveDave Kreskowiak10-Jul-24 2:56 
GeneralRe: Tables not appearing as classes Pin
Hesam emami10-Jul-24 11:37
Hesam emami10-Jul-24 11:37 
GeneralRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 11:44
mveDave Kreskowiak10-Jul-24 11:44 
AnswerRe: Tables not appearing as classes Pin
RedDk10-Jul-24 14:15
RedDk10-Jul-24 14:15 
QuestionPrint and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 3:54
Fokwa Divine3-Jul-24 3:54 
I have a strange issue I am experiencing with a web app. Typically, the user right clicks on the web page and click Print. He views the document in preview and then decides how to print it.

On Chrome, everything works fine

On Microsoft Edge, It only works if you right click the web page at the top of the page. If you scroll down to the bottom of the page before you right click and select print, the printed document is not formatted properly. The print preview is also not formatted properly. See screen shots below:

On Chrome - (User right click from bottom of page)

You can see the title of the app, title of the report, report run date etc

Report Issue - Chrome.PNG - Google Drive[^]

On MS Edge - (User right click from bottom of page)

The preview starts at some random data as shown below. Title of the app, title of report etc are not shown in the preview and printed version.

Report Issue - MS Edge.PNG - Google Drive[^]

As you can see from the above screen shots, Chrome is displayed properly. MS Edge only displays like that if I right click on the web page from the top of the page without scrolling down

Below is my code sample:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Physician Activity Report</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link href="~/lib/font-awesome/css/all.css" rel="stylesheet" />
    <link href="~/css/mycss.css" rel="stylesheet" media="print" />
</head>


Below is the content of mycss.css

CSS
@media print {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        float: left;
    }

    .col-md-12 {
        width: 100%;
    }

    .col-md-11 {
        width: 91.66666666666666%;
    }

    .col-md-10 {
        width: 83.33333333333334%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-8 {
        width: 66.66666666666666%;
    }

    .col-md-7 {
        width: 58.333333333333336%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-5 {
        width: 41.66666666666667%;
    }

    .col-md-4 {
        width: 33.33333333333333%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-2 {
        width: 16.666666666666664%;
    }

    .col-md-1 {
        width: 8.333333333333332%;
    }
}

h5 {
    color: darkblue;
}


What can I do to get this to work properly on MS Edge ? Is it a CSS issue ?
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
jschell3-Jul-24 6:00
jschell3-Jul-24 6:00 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 6:05
Fokwa Divine3-Jul-24 6:05 
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 6:54
RedDk3-Jul-24 6:54 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 7:20
Fokwa Divine3-Jul-24 7:20 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 7:54
RedDk3-Jul-24 7:54 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine9-Jul-24 2:31
Fokwa Divine9-Jul-24 2:31 
Questionmulti tcp clients Pin
darinka2-Jul-24 10:56
darinka2-Jul-24 10:56 
AnswerRe: multi tcp clients Pin
OriginalGriff2-Jul-24 21:37
mveOriginalGriff2-Jul-24 21:37 
GeneralRe: multi tcp clients Pin
darinka3-Jul-24 2:05
darinka3-Jul-24 2:05 
AnswerRe: multi tcp clients Pin
jschell3-Jul-24 6:14
jschell3-Jul-24 6:14 
GeneralRe: multi tcp clients Pin
darinka3-Jul-24 6:59
darinka3-Jul-24 6:59 
QuestionHow I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202326-Jun-24 13:07
Martin Adams 202326-Jun-24 13:07 
AnswerRe: How I write this logic to check if string in a list and also checked ? Pin
OriginalGriff26-Jun-24 18:24
mveOriginalGriff26-Jun-24 18:24 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202327-Jun-24 1:46
Martin Adams 202327-Jun-24 1:46 
AnswerRe: How I write this logic to check if string in a list and also checked ? Pin
Richard Deeming27-Jun-24 2:35
mveRichard Deeming27-Jun-24 2:35 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
Martin Adams 202327-Jun-24 2:46
Martin Adams 202327-Jun-24 2:46 
GeneralRe: How I write this logic to check if string in a list and also checked ? Pin
OriginalGriff27-Jun-24 3:55
mveOriginalGriff27-Jun-24 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.