User (Legacy) Posted December 11, 2003 Report Share Posted December 11, 2003 I am using VS version 7.1.3088 for C# .NET Windows Forms and .NET framework version 1.1.4322, under Windows XP Professional, all the latest patches. I have a form with multiple chart instances and a button that allows all of the charts to be printed. When the print button is clicked, I call the chart.Printer.PrintDialog() method to prompt the user for a printer and allow them to configure all the various settings. On my campus all printers are running across the network, as will most of our clients' printers. The problem I'm having is as follows: In the print dialog, if I change the default printer from an HP Color 2500 and to either an HP 4000 or an HP 4000 PCL 6(both grayscale), only the upper left portion of the chart is printed in the upper right corner of the page. Any subsequent charts are printed fine by setting the chart.Printer.Document.PrinterSettings to the same object reference as the initial chart, only the initial chart is printed oddly. If I change the printer from the default, click the properties button and click ok, without modifying any property setttings, the first page prints fine. I think that the print dialog is only updating the printer info when either the properties window is displayed or after printing an initial page, not when changing the printer alone. Does what I'm saying make sense? If so, is there a work around for this issue? I seems to be a .NET bug and not a ChartFX issue, but I figure I'd have better luck here. -logan Link to comment Share on other sites More sharing options...
Software FX Posted December 11, 2003 Report Share Posted December 11, 2003 I have never seen this problem but here is what I suggest to work around it. Show you own Print Dialog using the PrintDialog class (.NET Framework), then obtain the printer document and propagate it to all the charts. This will make all the charts the same instead of making the first one "special". I have not tried this, as I said I have never seen this problem happen so this is more like a wild shot. I hope it helps ! -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 15, 2003 Author Report Share Posted December 15, 2003 This fixes the problem. Thanks for the suggestion. As a side note, the issue with the chart printing only the upper left portion of the chart on the upper right portion of the paper occurs when I print a single chart from the chart's toolbar. It seems to only happen on the HP 4000 series laser printers, but I have a work around and am happy with it. -logan "SoftwareFX Support" <support@softwarefx.com> wrote in message news:myBZBNDwDHA.1616@WEBSERVER1... > I have never seen this problem but here is what I suggest to work around it. > > Show you own Print Dialog using the PrintDialog class (.NET Framework), then > obtain the printer document and propagate it to all the charts. > > This will make all the charts the same instead of making the first one > "special". I have not tried this, as I said I have never seen this problem > happen so this is more like a wild shot. > > I hope it helps ! > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted December 15, 2003 Report Share Posted December 15, 2003 I will try to find one of those printers to test it with it. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.