Jump to content

rencarnacion

uniGUI Subscriber
  • Posts

    633
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by rencarnacion

  1. Hi, Is there some way to refresh a URframe on runtime, because I was trying but it not refresh 

     

    I'm Doing like these

     

              UniURLFrame1.HTML.Clear;
              UniURLFrame1.HTML.Add(FieldByName('Contrato').AsString);
              UniURLFrame1.Refresh;
     

    I'd like to know if the content of UrlFrame is static ?

     

     

    Thanks 

     

  2. Hi, I need help with these case 

    I try to open a pdf document with javaScript 

    Using javaScript 

     

    The Variable UniMainModule.gs_ReporteDireccion store the Address of the PDF Document.

     

    I'm Interest into Load from the cache Files Because I don't want to Fill the Files Folder with PDF Files. the Cache files are delete as soon you close the session.

    If I create the pdf file under Files Folder I can Load but as I say bellow I'm interest in load from Cache Files 

     

     

    procedure TfrmReportPreview.UniSpeedButton1AjaxEvent(Sender: TComponent;
      EventName: string; Params: TStrings);
    begin
     
          UniSession.AddJS('window.open("' +UniMainModule.gs_ReporteDireccion+'")');
    end;

     

     

     

     

     

    post-922-0-75823300-1401828247_thumb.png

  3. procedure Imprimir(ReporteSalida: TppReport);

    var

      lPDFDevice: TppPDFDevice;

      CacheFileName,FName: string;

    begin

     

      // creat and configure the PDFDevice

      lPDFDevice := TppPDFDevice.Create(nil);

      FName  := FormatDateTime('hhmmsszzz', NOW) + 'Reporte.pdf';

      CacheFileName := UniServerModule.LocalCachePath+FName ;

     

      try

        lPDFDevice.PDFSettings := ReporteSalida.PDFSettings;

        lPDFDevice.FileName := CacheFileName; // assign output stream

        lPDFDevice.Publisher := ReporteSalida.Publisher;

     

        // generate the report

        gs_ReporteDireccion := CacheFileName;

        ReporteSalida.PrintToDevices;

        gs_ReporteDireccion :=  CacheFileName;

    HtmlFramePreview.URL := UniMainModule.gs_ReporteDireccion;

    //    UniSession.SendFile(CacheFileName);

     

      finally

        lPDFDevice.Free;

    End;
  4. I'm doing like you say

     

    look what I'm Doing 

      CacheFileName := UniServerModule.LocalCachePath + FormatDateTime('hhmmsszzz',
        NOW) + 'Reporte.pdf';
     

    But It doen't work then  If I use like these Work Fine "UniSession.SendFile(CacheFileName);"

    The application need to use  the preview in a frame or something like that 

×
×
  • Create New...