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] "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message
news:OwRKAaSPGHA.3100@tk2msftngp13.phx.gbl...
>I don't have this property PrintFileName (I looked in PrintDocument) Are
>you using VS 2005
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:%23yNXWaMPGHA.3936@TK2MSFTNGP10.phx.gbl...
>> PrintDocument.PrinterSettings.PrintFileName = "c:\aFile"
>> PrintDocument.PrinterSettings.PrintToFile = true;
>>
>> --
>> Regards,
>> Lloyd Dupont
>>
>> NovaMind development team
>> NovaMind Software
>> Mind Mapping Software
>> <www.nova-mind.com>
>> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message
>> news:uyRdPFGPGHA.3936@TK2MSFTNGP10.phx.gbl...
>>> How can I give a name other then by inserting the name in the input box
>>> provided?
>>>
>>> Thanks,
>>> Shmuel
>>>
>>> "Lloyd Dupont" <net.galador@ld> wrote in message
>>> news:e5JqV5BPGHA.3944@tk2msftngp13.phx.gbl...
>>>>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>
>>>> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message
>>>> news:eGGijF$OGHA.2604@TK2MSFTNGP09.phx.gbl...
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>