Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Printing in Windows XP

Posted on 2004-10-27
Medium Priority
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.
Question by:rob1000
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 11

Expert Comment

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

So we can recreate the problem on our computers.

Expert Comment

ID: 12438698
Which view control exactly?

Author Comment

ID: 12443218
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.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Accepted Solution

Informative earned 2000 total points
ID: 12445288
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.

Expert Comment

ID: 12445308
Oh also helped to turn off align to grid in options>general.

Author Comment

ID: 12454090
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

636 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