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 - wmcheung

Pages: [1] 2
1
How To's / Re: Fail-over for FO
« on: March 15, 2011, 04:42:43 am »
Hi Blinkiz,

Thanks for you suggestion.

I may use Heartbeat to handle the switch over process when the server failure. Now, I worry whether MySQL Cluster can work with FengOffice.

2
How To's / Re: Export CSV and PDF Problem in Reporting
« on: March 14, 2011, 04:13:00 am »
hi Francisco,

this problem is not fixed yet.

Some files contain Chinese characters, it is no problem to view those file name in Feng Office UI, however, the exported PDF cannot display those Chiese characters and change them to '?'.

I wonder whether it is related to the encoding and font use.
I check in the file <fengoffice>application/controllers/ReportingController.class.php

I found that
Code: [Select]
$pdf->SetFont('Arial', '', $fontsize);
Whether 'Arial' supports Chinese characters?

Code: [Select]
$cell = iconv(mb_internal_encoding(), "ISO-8859-1", html_entity_decode($cell, ENT_COMPAT));
For the encoding, whether 'ISO-8859-1' supports Chinese characters?




3
中文 / Export pdf with Chinese Content Problem
« on: March 11, 2011, 06:18:45 am »
I can view the chinese character contents from the Reporting, however, when I try to export pdf, it cannot display the chinese characters inside the PDF. Some '???' display instead of chinese characters. Any ideas?

4
How To's / Re: mbstring error
« on: March 10, 2011, 11:45:14 pm »
change to
mbstring.func_overload = 0

then it works....

5
How To's / Re: Export CSV and PDF Problem in Reporting
« on: March 09, 2011, 07:28:43 am »

Quote
ERROR: Error: String functions are overloaded by mbstring in '/srv/www/htdocs/feng/library/utf8/utf8.php' on line 39 (error code: 256)
I can resolve this error by updating php.ini
Code: [Select]
[mstring]
mbstring.internal_encoding = UTF-8
mbstring.func_overload = 0

Quote
ERROR: Error: Undefined variable: genid in '/srv/www/htdocs/feng/application/views/reporting/view_custom_report.php' on line 123 (
This error I have tried to update <FengOffice install>/application/views/reporting/view_custom_report.php
Code: [Select]
function format_value_to_print($col, $value, $type, $obj_type, $textWrapper='', $dateformat='Y-m-d', $genid='')Add $genid='' at the end of the function to avoid undefined variable error.

Now, I can use chrome to export PDF, however, the format has some problem.
Please see the attachment.

Is it possible to resolve?

6
How To's / Re: Export CSV and PDF Problem in Reporting
« on: March 09, 2011, 04:51:02 am »
hi franponce87,

I found the following error in log.php

ERROR: Error: String functions are overloaded by mbstring in '/srv/www/htdocs/feng/library/utf8/utf8.php' on line 39 (error code: 256)

ERROR: Error: iconv(): Detected an illegal character in input string in '/srv/www/htdocs/feng/application/controllers/ReportingController.class.php' on line 936 (error code: 8)

ERROR: Error: Undefined variable: genid in '/srv/www/htdocs/feng/application/views/reporting/view_custom_report.php' on line 123 (error code: 8)


any suggestion?

7
How To's / Re: Export CSV and PDF Problem in Reporting
« on: March 09, 2011, 04:48:13 am »
I did try again to test on IE8

I found that I can export the csv file

For IE7, when I click on 'Export to CSV', the page will reload and then prompt the Print dialog. If I click on 'Export to PDF', the page will reload to show Page Layout option and a 'Export' button. Clicking on 'Export' button, the Print dialog prompt.

As I have installed CutePDF, thus, I try to choose CutePDF to export the PDF file. I have attached the pdf file output. The layout of the PDF is just a web page layout, and didn't apply the Layout setting I set before.

For Chrome, do the same test. CSV file can be exported but still no response when clicking on 'Export' button.

8
How To's / Re: Fail-over for FO
« on: March 09, 2011, 03:18:54 am »
Why the post disappear from the "Question" List?

9
How To's / Re: mbstring error
« on: March 09, 2011, 03:08:23 am »
Hi franponce87,

I have install php-mbstring.

And I have set the following in php.ini
[mbstring]
mbstring.internal_encoding = UTF-8
mbstring.func_overload = 7

Do you have any suggestion?

10
How To's / Fail-over for FO
« on: March 07, 2011, 01:24:58 am »
I am designing a fail-over plan.

My plan is installing FengOffice in Machine A and Machine B and setup MySQL Cluster in both machines. Machine A is the master and Machine B is the backup in case of Machine A failure.

If the documents can store separately, I would like to store the documents in Machine C. Then, I can setup some backup procedures for the actual documents. No matter Machine A or Machine B also can retrieve the documents in Machine C.

As using MySQL Cluster can only protect the data stored in database, thus, I hope the documents can save in another location.

Is it possible?

And FengOffice recommends using MySQL with InnoDB. However, if I would like to use MySQL cluster 7.1.X, it seems to be not supporting InnoDB? Please help, any suggestion?

11
How To's / mbstring error [SOLVED]
« on: March 07, 2011, 12:40:24 am »
I found this error in <FO>/cache/log.php, I would like to know how to fix this, although I haven't got any errors when using FO but this log keeps growing very fast to log this error repeatedly.

#1 ERROR: Error: String functions are overloaded by mbstring in '/srv/www/htdocs/feng/library/utf8/utf8.php' on line 39 (error code: 256)

12
General Discussion / Re: Database Limitation?
« on: March 01, 2011, 01:21:09 am »
Anyone can give me some hints, whether this approach would work or not?

13
How To's / Re: Export CSV and PDF Problem in Reporting
« on: February 25, 2011, 12:32:58 am »
Yes, I'm using FO 1.7.3.1. The following environments also are not working to export the PDF file.

I have installed the html to pdf plugin, will this affect?

Under Windows 7:
Chrome Version 9.0.597.98
Mozilla Firefox Version 3.6.13

Under Fedora 14:
Mozilla Firefox Version 3.6.10

14
How To's / Re: Export CSV and PDF Problem in Reporting
« on: February 21, 2011, 10:41:01 pm »
Hi franponce87,

I did know there is another 'Export' button. When I click on it, it did try loading sth. then nothing happen in Google Chrome and Mozilla Firefox.

For IE 8, after clicking the 'Export' button, it will load another page and it will call the print dialog to prompt.

I did make change to a file called <feng_install>/language/en_us/lang.js. As I got an error shown in the tab before in one of the browsers mentioned. But I can't remember which browser show the error.

I add a line
'_download' : 'Download file',

However, this just makes the error not display again, still no PDF file to prompt for saving.

15
How To's / Re: How to add new tab?
« on: February 21, 2011, 01:21:40 am »
Hi wantman,

I think you should create different workspaces to separate your tasks rather than creating another tab. In FO, the tab is represented for different modules\features.

Pages: [1] 2