Solved

Printing in Windows XP

Posted on 2004-10-27
162 Views
Last Modified: 2010-05-02
Don't know if this is the right area or not so apologies in advance if its not.

My problem is that I have developed a VB app which displays maps and allows people to add lines for information to the maps.  These lines can be of any style, eg solid or dotted. The maps can then be printed, however, due to some lines being light coloured they appear feint and are therefore 'thickened' to allow then to appear clearer on teh print. When printed in any windows OS up to 2K they printed as expected, eg solid or dotted.  However, with XP all 'thickened' lines are printed solid.

The maps are drawn to the VB printer object from the view control.

I have also tried changing printer drivers but still doesn't make any difference.

Does anybody know what the problem is or if there is a solution.  Any advice would be greatly appreciated.
0
Question by:rob1000
    6 Comments
     
    LVL 11

    Expert Comment

    by:dbrckovi
    Can you post some examlpe? Some simple program which produces the same result.

    So we can recreate the problem on our computers.
    0
     
    LVL 3

    Expert Comment

    by:Informative
    Which view control exactly?
    0
     

    Author Comment

    by:rob1000
    The view control is actually a third paty control however, a picture box does the same thing.  It then redraws the lines to the printer object to print.

    The easist way to recreate is to draw some lines on a picture box and set their borderwidth and borderstyle accdordingly., eg borderstyle=2, 1 in the printer object, will give a dotted line.  If this then has its boderwidth set to say 3, then the line is printed solid and does not thicken.
    0
     
    LVL 3

    Accepted Solution

    by:
    Ah yes I see what you mean under XP it does apply the thick border to the whole line and the dashes are overlaid by the solid thicker border.

    It is definitely a bug which I cannot find a workaround for other than to print two or 3 lines with borderwidth 1 about 15 grid points apart using Y1 and Y2 differentials for horizontal lines and X1 X2 spacing for Vertical lines.

    An ugly workaround but it does create a thick dotted line by lining up more than one.
    0
     
    LVL 3

    Expert Comment

    by:Informative
    Oh also helped to turn off align to grid in options>general.
    0
     

    Author Comment

    by:rob1000
    Thanks for the help.  It was a problem I thought was related to XP, didn't know how though, and needed somebody to agree with me.  Got the workaround working in my test app so will give it a try in the app, thanks it was much appreciated.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now