Jump to content

adragan

uniGUI Subscriber
  • Posts

    193
  • Joined

  • Last visited

  • Days Won

    9

adragan last won the day on April 3 2019

adragan had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

adragan's Achievements

Active Member

Active Member (3/4)

29

Reputation

  1. My enviroment is : UniGui, UniDac, FastReport I put the FastReport component on the DataModule. Then in the private part of DataModule private ............. RCon:TFrxUniDacDatabase; // You have to have the full FastReport license and install those components ! // With the report designer you add a connection object on the report. You name it DConn so it can be found by name later on. // When you run the report first you do something like : procedure TUniMainModule.DoReport(rname:string; <.... some parameters for the report >); var pdf:TFrxPdfExport; procedure InitConn; begin RCon:=Frx.FindObject('DConn') as TFrxUniDacDatabase; if Assigned(RCon) then begin RCon.Connected :=False; RCon.Server :=UniMainModule.Conn.Server; RCon.DatabaseName:=UniMainModule.Conn.Database; RCon.Username :=UniMainModule.Conn.Username; RCon.Password :=UniMainModule.Conn.Password; RCon.LoginPrompt :=False; RCon.Connected :=True; end else ShowMessage('Connection ( DConn ) not existent '); end; // Conn evidently being the DB connection object from the DataModule1. // Then you run the report as shown in the first message.
  2. Avoid frxDBDataset. It's not threadsafe. Also I had problems with RichText component. Try to store the database connection in the report with TUniDac Connection or whatever DB engine you use. It's threadsafe.
  3. I got this type of errors when the version of the unim-..... was not the same as the version of the library used to develop the program. On the server ..... unim-1.90.0.1550 but on development machine version was updated .....unim-1.90.0.1563 Hope it helps !
  4. As far as I know, Richtext is not thread safe. Maybe it was resolved in the mean time. I resolved the problem by using HTML tags in a TUniMemo. The export was ok.
  5. As far as I know Sqlserver has it's own backup cron. Template, backup plan and such. Why don't you use it ?
  6. I know there is a way to configure the DNS to do some sort of round robin algoritm. That means that mysystem.mycompany.com.br would point to 2 or more external IP adresses. You coud configure 2 master hiperservers ( + all slaves and notes replicated ) to respond each on it's routable IP adress and split the load from the main master hiperserver. You could reconnect all session later at the DB level. It's a crises solution, not very nice and in the mean time either implement Apache revers proxi or wait for Fershad to work his magic.
  7. While editing the report put 2 in Columns property.
  8. var pdf_name, fname : string; fs:TFormatSettings; begin ....................... //I think there is a newer function that generates a random name for files pdf_name:= 'Some_Name' + '_'+FormatDateTime('ddmmyyyynnss', Now(), fs)+'.pdf'; fname := UniServerModule.LocalCachePath + pdf_name; with YourTable do TBlobFile( FieldByName( 'The_Name_Of_The_Blob_Field' ) ).SaveToFile(fname); UrlFrame.BeginUpdate; UrlFrame.Url:=fname; UrlFrame.EndUpdate; end; Pay attention to paths !
  9. There are service providers that send SMS-s from a REST messages. I'm using this approch. From application I format a REST message according to the provider API using RestRequest, RestReponse etc. Each provider has a different API so code examples are of no use. I thought of Abaksoft solution at first but there was no GSM signal in the datacenter and sharing a modem USB port between more users has it's chalanges / complications. Not impossible thou.
  10. In very profane words here is how it goes: Classes presented by UniGui include a TCP server somewhere ( ServerModule actually ). When you compile as an app you compile the server inside the app + all the stuff you developed. Click on the app and it runns in the backgroud. You can see it in the task bar. If you run the browser and input http://localhost:8080 basically you request a connection to that TCP server from the app on port 8080 on protocol http. Now let't take Apache. Apache has some internel functions that let you bind external libruaries to it. Actually all Apache is a collection of libruaries with various functions. What Unigui does is to create a dll that has an entry point that can be called by Apache. That's why you put in the browser http://192.168.1.1/your_app.dll . You ask Apache to connect to the TCP server from your_app and present whatever your MainForm shows. Don't play too much with http.conf. You can mess it up easily. You can do without VirtualHost. First variant is the simplest.
  11. App.exe is not the host application. App.exe IS the application. By host application they mean IIS or Apache or any other web server that can run ISAPI dll-s. My advice is to develop and debug by generating exe app and when finished recompile as ISAPI dll and install it in the production enviroment ( IIS or Apache ). There is enough documentation on the site how to do it.
  12. Boa Noite. Voce conseguiu colocar uma checkbox dentro de um UniStringGrid.

    Tem como compartilhar seu conhecimento, estou precisando.

    Obrigado.

  13. On LAN there are solutions. On WAN it's more complicated unless you create a VPN with the remote clients.
×
×
  • Create New...