After I have moved from Windows Server 2003 to Windows Server 2008 R2, the PDF font issue was encountered.
The description of the issue:
Using Window Server 2003, crystal report is used to export the report to PDF. Using the object tool option in PDF to select the string, we can see the string below contains in one box. (*not enough reputation to post images)
'abcde'
However when Window Server 2008 is used, a different string is produced.
'abcd' 'e'
As you can see, the string is separated into 3 boxes when windows server 2008 is used. Hence, I am unable to use a simple java program to read the string due to the added spaces (about one pixel difference).
The crystal report engine has not been changed. Hence, I susupect that it is due to the window server font issue, but have no idea how to rectifty this issue.
Hope someone has a solution to this problem.
Any help will be appreciated!
Related
We are experiencing an issue with private fonts and seek confirmation of what should happen before we spend time producing a Minimal, Complete, and Verifiable example.
Scenario: You install ArialMT TT font into Windows. Then you call withing your code AddFontResourceEx() with the FR_PRIVATE param to install an alternative version of ArialMT. The latter is identical to the former except it has 1 additional glyph lets say. The second font file is properly formed / not damaged.
Question: Which version of the font will windows give you in response to the GDI call to CreateFontIndirect(). Will it be (a) the version installed in the OS or (b) the private version AddFontResourceEx() ?
Notes: Our current experience is that we are served the Windows-installed version from c:\Windows\fonts where we expected to receive the private version. Intuitively we expected that the windows font server would look for a match to our font request in the private set of fonts and then in the system font set should a match not have been found.
If anyone could point out the MSDN page that details the selection process steps that would be greatly appreciated.
[Edited to be less TLDR;]
I’m having problems debugging my program. When I click on the submit button I get the Yahoo’s search engine message: Page not found message that looks like this:
The requested URL http://localhost:000000/MyController/ControllerAction/7?hsimp=yhse-001
cannot be found or is not available. Please check the spelling or try again later.
This does not leave me with any clue as to which line of code or the location of the problem.
In Chrome developer tool I find the line below
Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) errorhandler?hsimp=yhse-001&hspart=CND&type=A75DB878ECBE148E7B6F_s_g_e&q=http://localhost:000000/Att…:2
Still confused as to how it relates to my problem. Seems to be referencing screen resolution. How can I find the offending line of code in Web Developer 2010 Express?
This isn't caused a bug in your program code, so there is no "offending line".
It's a problem with your server configuration. But why is Yahoo Search coming up for a localhost resource?
That said, localhost:000000 is not valid. Port numbers must be between 1 and 65535 and do not have leading zeros. Where is 000000 coming from?
I just configured my Visual studio 2010 with IIS express 8.0. It works perfectly but in case of any error in my code it is showing me crash page in encrypted format (Meaning - It shows full of boxes and some special characters). So every time i need to go event viewer to check the issue. Can you please help me in this?
This is how the message looks:
��I�%&/m�{J�J��t��$ؐ#�������iG#)���eVe]f#�흼��{����{����;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6�����h���8]�����u]���u�-�������Gi[,�ߪ�?��WZ4i���uQ��t������>z��YQ6�Ҽ������S����YQ���|9+�O�f �ϫly�����A���U��?�_�������������������w�n<=>9��ypzr��/�:�]�W�b]f�/\N���ٲ%����G�(Eӏ�b���(��>�� 1~�]/����K���=^����Xe���1��Y����2�6�u�A:�f��/>����y�(��G�d^ϲe��!z���ђh���QS� �����iUV��I�M���ԃ�z�>�EV_���Z=J���������T���������f�����Z�s���� �-H¸���U�w�|=-fYzR-�������|��<&�o�Z()*�S!U��k�g����o��j��.�_�/^��u�/��J�Iն��Q���z�i�n�-gل���ݞ��Y^����H�8/���CMC� ԡO��w}V|W���\?�#�}t5/��#����G���{�:�iܩU(��8=^��b�؎��������vwv~���ٮ��YS���������|�(}\�l������-��b{4��3�y���4�������Q���آ%������~�^/g�f�U~AT$D���uq�F�sr�>͛i]�DVߝ/���P���i�ߥՔ�������2o����f�19h���|E�n��;������}x��:I~��e���N��5�ϑ�I~�h�}��JV>ͧ��f,x��'.���ﶮʒ�b�N�I�5���>ْ_2K4�*�s��9$r��U������M�Hw�ӺZ���C����{������lIf.?c3��wg<|���ϧ�t ��wgD�������{�h��o�-��fE/���(����#��Q���lY��9nɖ�
I just resolved the issue. Initially my application was working in integrated mode. I tried it with classic app pool and it started showing the real error message :-)
I've created some reports in CR 7 and VB6 which connect to an SQL
Server2000 database. Then I've created the Setup program by using the
VB Deployment Wizard. The problem is that in some (not all) Windows XP
machines.
I get the error 20997 when I try to preview the reports. Could anyone
please give me a quick help?
I am getting this error at :
cryCompare.action = 1 /* HERE */
I tried registering : cpeaut32.dll also.It is registering successfully.
Thinks.
Check your printer page dimensions vs what the report is expecting. I recently ran into this issue with Crystal Reports 7, Win XP and a Label Printer and setting the proper label size in the print drivers fixed it for me.
I'm using PHPExcel to generate a very simple .xls file (PHPExcel_IOFactory::createWriter($PHPExcel, 'Excel5')). Whenever that file is opened on Windows 7 using Excel 2010 or 2007, I get the following error:
Excel found unreadable content in 'XXXXXXX.xls'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
When I open the same file in Excel 2010 in Windows XP it works fine. If I open the same file in OpenOffice, it works regardless of the OS.
Windows 7 / Excel 2010: Error
Windows 7 / Excel 2007: Error
Windows XP / Excel 2010: Works
Windows XP / Excel 2007: Works
Any / OpenOffice: Works
When I tell PHPExcel to generate an .xlsx file (PHPExcel_IOFactory::createWriter($PHPExcel, 'Excel2007')), it works fine with all the above combinaisons.
I found countless threads on the MS forums, and it seems to affect only Windows 7 files with Excel files generated by third party libraries (not just PHPExcel). But no one has a solution.
I also found the following MS KB article, but I'm not familiar with the underlying Excel specifications: http://support.microsoft.com/kb/2411912
Has anyone else experienced this?
If it is the problem you've highlighted from the MS Support site, then it's locked somewhere in the innards of PHP_OLE, probably in the PHPExcel_Shared_OLE_PPS_File class. I've raised this as Issue 15508 on the PHPExcel site, and will try to run some debugging over the weekend on a Windows 7 box.
No guarantees of a quick fix: but you've given me a pointer on how to try and recreate the problem, and where to look.
For me it was fixed when I used proper UTF-8 encoded strings instead of ISO-8859-1. Maybe PHPExcel can hint about bad encodings?
You have to write with UTF-8 the title, creator, LastModifiedby etc... fields. This was my solution.