Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3627
Unable to print threads with code
posted

Here's a real strange one...

 If I print a thread that contains code, most of the code is invisible. I typically see blank space and then maybe a few of the final lines of the code at the bottom. I've tried printing to my local laser printer and to acrobat writer. Even in writer the space is blank.

I'm forced to copy the thread, paste it into textpad and then print it as purely plain text. Ugly!

Have you ever seen or heard of this?

Parents
  • 8680
    posted

    [Re-Editing ths post] I put some markup and some VB in this post, and after posting, I printed it with no problem. Using a Color LaserJet 4700dn, IE 7, WinXP Pro.

    [Trying it out]

    Here's some markup:

    <Items>

    <ignav1:Item TargetUrl="" TagString="" Text="Funding" TargetFrame="" CssClass="">

    <items>

    <ignav1:Item TagString="" TargetUrl="AgencyBalanceSheet.aspx" Text="Funding Request" CssClass="" TargetFrame=""></ignav1:Item>

    <ignav1:Item TagString="" TargetUrl="AgencyBalanceSheet.aspx" Text="Project Balances" CssClass="" TargetFrame=""></ignav1:Item>

    <ignav1:Item TagString="" TargetUrl="viewpayments.aspx" Text="Payment History" CssClass="" TargetFrame=""></ignav1:Item>

    <ignav1:Item TargetUrl="PerformanceReport.aspx" Text="Performance Policy Report"></ignav1:Item>

    </items>

    </ignav1:Item>

    And here's some VB:

    Dim lResult As SqlDataReader = Nothing

    'Dim ContractIO As EP_CDBG_Contract

    Dim cn As New SqlConnection(ConnectionStringGet())Dim cmd As New SqlCommand("SP_CDBG_FND_TRANSFER_GETFDRQPRIORYEARBYDAYRANGEFISCALYR", cn)

    cmd.CommandType = CommandType.StoredProcedure

    Try

    cmd.Parameters.Add("@DAYRANGE", DbType.Date)

    cmd.Parameters("@DAYRANGE").Value = Date.Now.AddDays(-7)

    cmd.Parameters.Add("@FISCALYR", SqlDbType.Int)cmd.Parameters("@FISCALYR").Value = EP_CDBG_Contract.FiscalYr(Date.Now) - 1

    cn.Open()

    lResult = cmd.ExecuteReader(CommandBehavior.CloseConnection)

    Catch ex As Exception

    Try

    cn.Close()

    Catch ex2 As Exception

    'ignore second exception, report first

    End Try

    Throw ex

    End Try

    Return lResult

    End Function

  • 3627
    posted in reply to Edward McCarroll

    Hi Ed.

     That prints just fine.

    But this one does not!

    The last bit of code is blank. I get a big empty box, then a page break, followed by the remaining box and a few lines of code, resuming at "DataRowView drv = e.Item as DataRowView;" and then "//do your initialization on the FieldLayot", finally two closing brackets.

     

  • 8680
    posted in reply to Todd

    tbeaulieu said:

    Right!  On my printout of that page, I see a lot of white space, and then the last four lines of your code.  On my screen, just before the last four lines, I see some kind of horizontal bar running across the post space.  It's a lot dimmer than what a <hr> tag usually gives me.

    Not that I'm in a position to do anything about it, but you might want to:

    • edit that post
    • click on the HTML button
    • copy the underlying markup
    • paste the HTML into your next post on this thread.

    That way, we could all look for something wierd in the HTML.

    OOPS!  Joe Dour is the author of that post, so he would have to do that.  But since he's IG staff, he'll probably just fix the problem.  ;-)

Reply Children
No Data