#1 mORMot 1 » TGDIPages Printing Orientation » 2020-09-21 20:39:22

NJL
Replies: 0

I'm developing reports that need to print on 1/2 US Letter size forms.  8.5" X 5.5"

I specify the NewPageLayout with 216 W X 140 H, everything looks great in Preview but when I send it to the printer, it keeps changing orientation to landscape. 

I've tried setting the orientation in the code, but if I set it or not, it claims in to be Portrait.

Has anyone else run into this issue and found a way to correct it?

I'm hoping to not need to redevelop the reports in another reporting package.

Any help or tips would be greatly appreciated.  PDF export looks as expected.

#2 mORMot 1 » TSQLTableWritable » 2018-11-21 21:46:10

NJL
Replies: 0

I found this in the documentation but I've been unable to find where or if it's implemented in the framework.

https://synopse.info/files/html/api-1.1 … BLE_UPDATE

I could really use this for my current project.  I'm writing a record set in JSON to disk from a TSQLTableJSON instance, and I would like to read it back in to another TSQLTableJSON instance, update some of the field values and then write it back to disk. 

I've so far been unable to figure out how to use the UpdateFrom on TSQLTableJSON to do the updates, then I stumbled upon the TSQLTableWriteable, which sounds like what I need to use.  Has anyone else used this or happen to know where or it it's still in the framework?

Regards,
NJL

#3 mORMot 1 » Unable to Compile ...2017-10-31_120956_9eb16ccca7, Delphi 2010 Win32 » 2017-11-02 21:16:37

NJL
Replies: 3

I just tried to update my mORMot source today and when I attempt to compile it in Delphi 2010 it complains the following:


   [DCC Error] SynCommons.pas(12324): E2137 Method 'TerminatedSet' not found in base class

I'm unsure what to do to make it work.

Regards,
Nick

*UPDATE - Solved*

I had to comment out the HASTTHREADTERMINATESET line in Synopse.inc. Line #429

{$if CompilerVersion >= 21.0}
      // Delphi 2010/XE: Reduce EXE size by disabling much RTTI
      {$define ISDELPHI2010}
      {$define ISDELPHI2010_OR_FPC_NEWRTTI}
      {$define FPC_OR_UNICODE}
      {$define HASTTHREADSTART}
   // {$define HASTTHREADTERMINATESET}
      {$define HASINTERFACEASTOBJECT}
      {$ifdef NEWRTTINOTUSED}
        {$WEAKLINKRTTI ON}
        {$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
      {$endif NEWRTTINOTUSED}
    {$ifend}

#4 Re: mORMot 1 » From client side, how to detect the server has gone away. » 2016-11-02 13:45:41

NJL

Has anyone else ran into this issue?

I also need to know this so I can handle if I've lost connection to the server to somehow cache the data being transacted locally and then feed it to the server once I'm able to talk to it again.  But if my application hangs when the server goes away I'm unable to create a solution for this.  Any guidance would be greatly appreciated.

#5 mORMot 1 » From client side, how to detect the server has gone away. » 2016-10-28 15:55:36

NJL
Replies: 3

Hello,

I want to be able to detect when the server has gone away.  The client hangs when the server is shutdown and I want to try an display a notice of that event but I've been unable to find something I can poll to see the current state of the connection.

I initially tried polling the ServerTimeStampSynchronize function.  The client would lock up before that could return.  Then I attempted to look at the ServerInternalState variable value, but the client still locks before I can act upon it and it doesn't appear to update when the server is shutdown.

Is there some event that is fired on the client side when a connection interruption happens?  So I can more gracefully capture it and act upon it?

I've played some with changing the timeouts on my TSQLHttpClientWebsockets.Create but this did not seem to help the situation.

Thank you in advance.

Board footer

Powered by FluxBB