Welcome, Guest. Please login or register.
Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mucip

Pages: 1 [2] 3 4
16
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: April 24, 2020, 11:15:37 AM »
Hi,
SELECT * FROM tartim WHERE belge_no = '" + belge_no + "' ;"

This is the SELECT statement. You can apply like this filter to th DB and send it to LimeReport.

What is your SELECT statement?

Regards,
Mucip:)

17
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: April 23, 2020, 09:43:44 PM »
Hi,
Could you explain little bit more?
What is the problem? You can create SELECT statement and send it to LimeReport as I decribed.

Regards,
Mucip:)

18
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: March 30, 2020, 12:15:39 AM »
Hi,
Let me explain mey way:
I will add these lines to header file

//For Lime Report
QSqlQueryModel *raporModel;
LimeReport::ReportEngine *mRapor;
//

And in the source code:

// to use LimeReport and fill the data into Model.
mRapor = new LimeReport::ReportEngine(this);
raporModel = new QSqlQueryModel(this);

raporModel->setQuery("SELECT * FROM tartim WHERE belge_no = '" + belge_no + "' ;");

//To load the LimeReport file.

if(!mRapor->loadFromFile(fileName))
    {
        QMessageBox::critical(this, "Hata!", fileName + " Dosyasına ulaşılamadı!");
        return;
    }

//And push the Model to Limereport. Because you fill the data to Model before.

mRapor->dataManager()->addModel("tartim", raporModel, false); //Use third parameter false if you don't want to delete Model after finishing job.:)

    mRapor->setResultEditable(false);

    mRapor->previewReport();

    //mRapor->designReport();

    //mRapor->printReport();



That's all. It's very easy. But the important thing create the LimeReport instance and the model just in time. Create them and use them. Otherwise the speed is going down.

Regards,
Mucip:)




19
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: March 26, 2020, 04:30:25 PM »
Hi,
You're great Arin. Thanks.  ;)

This is very usefull. Sometims it's needed to hide something on the report depends on user demand. This dialog is good for this. Dialog confirms "Do you want to see prices?".

If user choose OK then we can see the prices on the report. Otherwise we hide the prices on the report.

Regards,
Mucip:)

20
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: March 22, 2020, 09:02:25 AM »
Hi,
It looks well. Thanks. ;)

So how can we connect dialogs window to report functionality? Any document or demo?

Regards,
Mucip:)

21
Discussion | Обсуждение / Re: Slow startup time!
« on: March 10, 2020, 12:37:19 PM »
Hi,
As you advice, I loaded LimeReport when I press the "Print" button. Now it's better. Thanks.

Regards,
Mucip:)

22
Discussion | Обсуждение / Re: Slow startup time!
« on: March 09, 2020, 11:41:36 AM »
Hi,
"If you create an instance and start loading a report's pattern into it, a slowdown may occur in this case."

I do like this. How can I do other than this way?

Regards,
Mucip:)

23
Discussion | Обсуждение / Slow startup time!
« on: March 08, 2020, 02:35:39 PM »
Hi,
Everything perfect with LimeTeport except speed! :(

When I add #include<LimeReport> in the header of the form, it's dramaticly make slow the loading time. I'm waiting while formX.show()

Any advice  please?

Regards,
Mucip:)

24
Discussion | Обсуждение / Re: Dialog and Function browser?
« on: March 04, 2020, 11:15:08 AM »
Hi,
Wouv... Very deep and difficult situation for me... :)

OK. Let me forget about dialogs.

By the way where is the embedded dialog designer?

Regards,
Mucip:)

25
Discussion | Обсуждение / Dialog and Function browser?
« on: March 03, 2020, 10:24:03 AM »
Hi,
There is Script Browser pane on the left side. But nothing happens when I press the buttons.
Is there any tutorial about how to add/edit/delete Functions and Dialogs?

Regards,
Mucip:)

26
Hi,
In github, version 1.5.35 readme file says;

#include "lrreportengine.h" to add report engine

But it was before;

#include <LimeReport>

What is the differenece and which is the better?

Regards,
Mucip:)





27
Hi,
It's OK. Thanks.

Regards,
Mucip:)

28
Discussion | Обсуждение / Re: Sript language tutorial?
« on: March 01, 2020, 05:49:21 PM »
Hi,
Work like a charm. Thanks. ;)

Regards,
Mucip:)

29
Discussion | Обсуждение / Sript language tutorial?
« on: February 29, 2020, 03:27:56 PM »
Hi,
Is there any tutorial about LimeReport Script Language? I only found this video but not enaugh.

https://www.youtube.com/watch?v=9tVicuuTWFc

I need the function of selecting bigger or smaller value of to int value like below?


int MainWindow::biggerValue(int gelen1, int gelen2)
{
    if(gelen1 == gelen2) return gelen1;

    if(gelen1 < gelen2) return gelen2;else return gelen1;

}

int MainWindow::smallerValue(int gelen1, int gelen2)
{
    if(gelen1 == gelen2) return gelen1;
    if(gelen1 > gelen2) return gelen2;else return gelen1;

}



Can I use same functions in LimeReport Script ,n case of determine bigger or smaller value of two database value?

Ofcourse I can send it with SQL too but I want to diving deep in LimeReport.  ;)


Regards,
Mucip:)

30
Hi,
Work like a charm. Thanks.  ;)

Regards,
Mucip:)

Pages: 1 [2] 3 4