all groups > dotnet drawing api > february 2006 >
You're in the

dotnet drawing api

group:

PrintToFile


PrintToFile Samuel Shulman
2/27/2006 10:58:55 PM
dotnet drawing api:
Hi

I set this property of the print dialog to True but the program still sent
the document to the printer but not to a file (although it did create the
file the was empty)

Any suggestions?
Samuel Shulman

Re: PrintToFile Lloyd Dupont
2/28/2006 12:00:00 AM
I found that giving the file a name, greatly helps.
maybe it's that?


--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
[quoted text, click to view]

Re: PrintToFile Samuel Shulman
2/28/2006 12:20:04 PM
How can I give a name other then by inserting the name in the input box
provided?

Thanks,
Shmuel

[quoted text, click to view]

Re: PrintToFile Lloyd Dupont
3/1/2006 12:00:00 AM
PrintDocument.PrinterSettings.PrintFileName = "c:\aFile"
PrintDocument.PrinterSettings.PrintToFile = true;

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
[quoted text, click to view]

Re: PrintToFile Samuel Shulman
3/1/2006 11:51:38 AM
I don't have this property PrintFileName (I looked in PrintDocument) Are you
using VS 2005

[quoted text, click to view]

Re: PrintToFile Lloyd Dupont
3/2/2006 12:00:00 AM
Read better!

Anyway I will write it differently just for you!
PrintDocument pd = ......
pd.PrinterSettings.PrintFileName = "c:\aFile"
pd.PrinterSettings.PrintToFile = true;

As you could see, indeed, PrintDocument don't have a PrintFileName property.
But PrinterSettings has.

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
[quoted text, click to view]

Re: PrintToFile Samuel Shulman
3/2/2006 12:30:38 PM
PrinterSettings.PrintFileName also doesn't exists in VB.NET 2003

Cheers,
Samuel

[quoted text, click to view]

Re: PrintToFile Lloyd Dupont
3/3/2006 12:00:00 AM
Hahum.....
Note: This property is new in the .NET Framework version 2.0.
Well I guess it doesn't, sorry ....
Why not upgrade anyway?
In the worst case the express line is free!!

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
[quoted text, click to view]

AddThis Social Bookmark Button