Q&A

  • QuickReport에서 프린터 바꾸어서 출력할려고 하는데.
저 좀 도와주세요....(많이 도와주시면 더 좋구요...)

프린터 설정 Dialog로 선택한 프린터로 출력하기위해

다음과 같이 작성한후 Run을 하니까 Access Violation Error발생합니다요...

부디 저에게 광명에 빛을...



<---Source 시작--->

If PrinterSetupDialog1.Execute then

QuickRep1.PrinterSettings.printerindex := Printer.PrinterIndex;

<---Source 끝--->



참고) 전Delphi3.0/QuickRep2.0입니다요....



3  COMMENTS
  • Profile
    안치봉 1999.05.18 22:27
    안미선 wrote:

    > 저 좀 도와주세요....(많이 도와주시면 더 좋구요...)

    > 프린터 설정 Dialog로 선택한 프린터로 출력하기위해

    > 다음과 같이 작성한후 Run을 하니까 Access Violation Error발생합니다요...

    > 부디 저에게 광명에 빛을...

    >

    > <---Source 시작--->

    > If PrinterSetupDialog1.Execute then

    > QuickRep1.PrinterSettings.printerindex := Printer.PrinterIndex;

    > <---Source 끝--->

    >

    > 참고) 전Delphi3.0/QuickRep2.0입니다요....

    >



    안녕하세요.



    아래는 제가 해본겁니다~ 에러가 안나더군요. -.-;;

    (델4 + 델4의 퀵리포트)



    ...

    ...



    uses Printers;



    procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;

    Shift: TShiftState; X, Y: Integer);

    begin

    if PrinterSetupDialog1.Execute then

    QuickRep1.PrinterSettings.PrinterIndex := Printer.PrinterIndex;

    end;





  • Profile
    안미선 1999.05.19 00:45
    안치봉 wrote:

    > 안미선 wrote:

    > > 저 좀 도와주세요....(많이 도와주시면 더 좋구요...)

    > > 프린터 설정 Dialog로 선택한 프린터로 출력하기위해

    > > 다음과 같이 작성한후 Run을 하니까 Access Violation Error발생합니다요...

    > > 부디 저에게 광명에 빛을...

    > >

    > > <---Source 시작--->

    > > If PrinterSetupDialog1.Execute then

    > > QuickRep1.PrinterSettings.printerindex := Printer.PrinterIndex;

    > > <---Source 끝--->

    > >

    > > 참고) 전Delphi3.0/QuickRep2.0입니다요....

    > >

    >

    > 안녕하세요.

    >

    > 아래는 제가 해본겁니다~ 에러가 안나더군요. -.-;;

    > (델4 + 델4의 퀵리포트)

    >

    > ...

    > ...

    >

    > uses Printers;

    >

    > procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;

    > Shift: TShiftState; X, Y: Integer);

    > begin

    > if PrinterSetupDialog1.Execute then

    > QuickRep1.PrinterSettings.PrinterIndex := Printer.PrinterIndex;

    > end;

    >

    >



    ...델4에서는 된다는 건 알고 있는데...

    저는 델3을 갖고 있거든요...

    델3에서는 어떻게 안될까요?(아니,정확히 QuickRep 2.0에서는)

    델3에서는 PrinterSettings에 'PrinterIndex' Property가 없거든요...

    방법을 알고 계시면 좀 알켜주세요...;-(





  • Profile
    powerman 1999.05.21 10:13
    안미선 wrote:

    > 안치봉 wrote:

    > > 안미선 wrote:

    > > > 저 좀 도와주세요....(많이 도와주시면 더 좋구요...)

    > > > 프린터 설정 Dialog로 선택한 프린터로 출력하기위해

    > > > 다음과 같이 작성한후 Run을 하니까 Access Violation Error발생합니다요...

    > > > 부디 저에게 광명에 빛을...

    > > >

    > > > <---Source 시작--->

    > > > If PrinterSetupDialog1.Execute then

    > > > QuickRep1.PrinterSettings.printerindex := Printer.PrinterIndex;

    > > > <---Source 끝--->

    > > >

    > > > 참고) 전Delphi3.0/QuickRep2.0입니다요....



    *************************************

    www.qusoft.com에서 QR20k.exe를 다운받아서 update 시킨후

    program을 preview한후 printsetup을 바꾼후 프린트해보세요.

    즐팅하시기를.........쩝

    > > >

    > >

    > > 안녕하세요.

    > >

    > > 아래는 제가 해본겁니다~ 에러가 안나더군요. -.-;;

    > > (델4 + 델4의 퀵리포트)

    > >

    > > ...

    > > ...

    > >

    > > uses Printers;

    > >

    > > procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;

    > > Shift: TShiftState; X, Y: Integer);

    > > begin

    > > if PrinterSetupDialog1.Execute then

    > > QuickRep1.PrinterSettings.PrinterIndex := Printer.PrinterIndex;

    > > end;

    > >

    > >

    >

    > ...델4에서는 된다는 건 알고 있는데...

    > 저는 델3을 갖고 있거든요...

    > 델3에서는 어떻게 안될까요?(아니,정확히 QuickRep 2.0에서는)

    > 델3에서는 PrinterSettings에 'PrinterIndex' Property가 없거든요...

    > 방법을 알고 계시면 좀 알켜주세요...;-(

    >

    >