cVz 19 Junior Poster

Hey dudes...i am currently working for a company that codes in delphi 7... i am familliar with C# language but not that much of Pascal language...i need to make a form where i can print an added HTML page...

I managed to get it to print a form but i wnat to enable the print dialog thing so that people can select their own printers and page size...

heres what i have...

private
{ Private declarations }
public
{ Public declarations }
end;

var
PrintPreviewForm: TPrintPreviewForm;

implementation

{$R *.dfm}
//******************************************************************************
//******************* Printer options ***************************************
procedure TPrintPreviewForm.PrinterOptionsButtonClick(Sender: TObject);
begin
Htmlviewer1 :=GetDialog; // *** PROBLEM !!!!!!!!!!!!! ******
end;

//******************** Cancel Print Button *************************************
procedure TPrintPreviewForm.CancelPrintButtonClick(Sender: TObject);
begin
Close;
end;

//******************* Print Button *********************************************
procedure TPrintPreviewForm.PrintButtonClick(Sender: TObject);
begin
Htmlviewer1.Print(0,999);
end;
//****************** Ending of code ***************************************
end.

Please please please give me a snippet...

thank you very much...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.