المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : PDF virtual printer in c#



C# Programming
06-17-2009, 05:41 PM
PDF virtual printer in c# JurieBurie Just Posted

Hi All

I have a small project that someone asked me to do for them and am struggeling quite a lot to get started.

Could someone please steer me in the right direction.

Here are the requirements:

When you are in app such as word/excel, printer driver must be in printer list.

If you click on driver, dialog box must pop up with email address option & postal address option.

Then it must create a pdf file with unique name inside specific folder.

Must also create a text file which states details punched in i.e. Email or post address with same name as pdf but with dat extention

Example:
C:\pdf-app\23212345432.pdf
C:\pdf-app\23212345432.dat

The .dat contents with email & post option:
Type=email
EmailAddress=carl.vorster@gmail.co.za
Type=post
Address1=Ground Floor
Address2=Augusta building
Address3=Dimension Data Campus
Address4=132 Sloane Street
Code=2055

The .dat contents with post option:
Type=email
EmailAddress=carl.vorster@gmail.co.za
Type=post
Address1=
Address2=
Address3=
Address4=
Code=

The .dat contents with email option:
Type=email
EmailAddress=
Type=post
Address1=Ground Floor
Address2=Augusta building
Address3=Dimension Data Campus
Address4=132 Sloane Street
Code=2055

PLEASE HELP

Jurie