November-06's Profile User Rating: *****

Reputation: 48 Craftsman
Active Members
Active Posts:
452 (0.23 per day)
04-January 11
Profile Views:
Last Active:
User is offline Dec 28 2015 10:47 PM

Previous Fields

Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Icon   November-06 has not set their status

Posts I've Made

  1. In Topic: Week #37- XML

    Posted 25 Oct 2015

    I am currently learning XML with XSLT. Also, I am starting to learn Perl. My goal is to understand how to develop for/with XML Professional Publisher (XPP). I don't have an idea how XPP works except for my knowledge that it uses XML, XSLT, and Perl.

    I can't find that much resources in the internet on this. If anyone has a knowledge of XPP, I would appreciate any help. Thanks.
  2. In Topic: Printing StringBuilder with HTML tags

    Posted 28 Jul 2015

    Thanks, guys. I have played around with Graphics and have successfully fulfilled my requirements. Thanks again.
  3. In Topic: Printing StringBuilder with HTML tags

    Posted 24 Jul 2015

    View PostSkydiver, on 23 July 2015 - 11:07 PM, said:

    Is that PrintDocument the version from WinForms? If so, you should just pass in the Graphics object from your printer to that API call.

    Yes, it is the PrintDocument from Windows Forms.

    Here's the code I am using. I've researched this through google.

     private static void printdoc_PrintPage(object sender, PrintPageEventArgs e)
                float linesPerPage = 0;
                float yPos = 0;
                int count = 0;
                float leftMargin = e.MarginBounds.Left;
                float topMargin = e.MarginBounds.Top;
                string line = null;
                // Calculate the number of lines per page.
                linesPerPage = e.MarginBounds.Height / printFont.GetHeight(e.Graphics);
                // Print each line of the file. 
                while (count < linesPerPage && ((line = sreader.ReadLine()) != null))
                    yPos = topMargin + (count * printFont.GetHeight(e.Graphics));
                    e.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, new StringFormat());
                // If more lines exist, print another page. 
                if (line != null)
                    e.HasMorePages = true;
                    e.HasMorePages = false;

    What happens is that the whole HTML string is displayed in one line...

    <table><tr><th>header 1</th><th>header 2</th></tr><tr><td>cell 1.1</td><td>cell 2.1</td></tr></table>

    I haven't worked with Graphics before so I'm not sure how to do this. I'll do more research on this.

    If you know of a link that I can use as a reference, I'll be glad if you can share it.

    Thanks a lot.
  4. In Topic: Printing StringBuilder with HTML tags

    Posted 23 Jul 2015

    I am retrieving data from the database and building HTML tags with StringBuilder.

    This StringBuilder is being read into a MemoryStream then into a StreamReader so I can print it with Printdocument.

    The output, though, is printing the HTML string, <table><tr><th>column1</th></tr></table>. I need it to print in table format.

    I am thinking that maybe there's a workaround with Encoding but I'm still not sure.

    I don't know anything about PostScipt or PCL Library but I'll look into them. Thanks for the tip.
  5. In Topic: How to access field in another table within stored procedure

    Posted 30 May 2015

    You are not even including any column from the tables you are reading in your select statement. What's the point of all these querying?

    Then you are getting a column from a table that is not part of the tables you are querying on.

    You should rethink your objectives. What is your desired output? What are the tables concerned? What are the conditions that need to be considered? How can the desired output be achieved?

    Can't you just query directly to tblActivityCounts? Or, maybe, if possible, tblActivityCounts should be part of the tables being joined.


November-06 has no profile comments yet. Why not say hello?