Recent

Author Topic: Question about iphtmlpanel1.PrintPreview  (Read 10854 times)

bobix

  • Jr. Member
  • **
  • Posts: 71
    • http://rechnik-bg.com
Question about iphtmlpanel1.PrintPreview
« on: February 10, 2010, 03:24:33 pm »
I tried this code on Windows,Mandriva and fedora. With same results:
"Access violation" or "Project project1 raised exception class 'External: SIGSEGV.'"
Am I missing something?
Quote
unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  StdCtrls, LR_Class, LR_View, IpHtml, Ipfilebroker, PrintersDlgs;

type

  { TForm1 }

  TForm1 = class(TForm)
    Button1: TButton;
    IpFileDataProvider1: TIpFileDataProvider;
    IpHtmlPanel1: TIpHtmlPanel;
    PrintDialog1: TPrintDialog;
    procedure Button1Click(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

var
  Form1: TForm1;

implementation

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
    printdialog1.execute;
    iphtmlpanel1.OpenURL('c:\test3\index.html');
    iphtmlpanel1.PrintPreview;
end;

initialization
  {$I unit1.lrs}

end.
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64

jesusr

  • Sr. Member
  • ****
  • Posts: 484
Re: Question about iphtmlpanel1.PrintPreview
« Reply #1 on: February 11, 2010, 06:57:50 am »
The AV is fixed in r23681.

The problem is that preview implementation is very slow in linux :(

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Question about iphtmlpanel1.PrintPreview
« Reply #2 on: February 11, 2010, 08:52:07 am »
The problem is that preview implementation is very slow in linux :(

What is slow lr_preview or iphtml ?

 

TinyPortal © 2005-2018