Click here to Skip to main content
15,888,221 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I have a peculiar situation,
I have a windows forms application that uses some RDLC reports, and it runs well on Windows 10 RS3,

After some of my clients updated to Windows 10 RS4 the reports that had worked fine before on RS3 now doesn't print,

The report is displayed just fine but as soon as the user clicks the print button in the report viewer and selects the printer and clicks OK the report doesn't print but there is "Operation Completed Successfully" message in place of the report.

I updated my development machine to RS4 and tried debugging the issue with no avail.

After several days of trial and error and rebuilding the reports from scratch and trying to print them through out the way,

It became clear that whenever a TextBox's font is set to a certain font (e.g.: TektonPro,Diavlo,Fertigo) the exception occurs,

When all the fonts in the report are set to other fonts (e.g.: Cairo , NotoNaskhArabic , ae_Alhor), the report prints normally.

What causes this odd behavior?
and how to resolve the issue ?

What I have tried:

the fonts are all installed on the PC, and the problem manifests when the font property of any element in the report is set to any OpenTypeFont (e.g. Diavlo,Fertigo).

the ones I tried are :
(TektonPro,Diavlo,Fertigo) all are OpenType fonts => raises the issue.
(Cairo , NotoNaskhArabic , ae_Alhor) all are TrueType fonts => no issue..prints normally.

I changed all the OpenType fonts of the report to other fonts that are TrueType,
and that got the report to work, but that is not the desired outcome.

I need to keep the OpenType fonts to match the application fonts.

The printer drivers are up-to-date, but the issue occurs when printing to PDF nevertheless.

All the fonts are installed on the PC.
Posted
Updated 5-Jun-18 7:03am
v4
Comments
[no name] 3-Jun-18 12:55pm    
You're missing a lot of details.

What fonts are the RDLC "files" looking for? (It's XML).
What does "print" mean? To PDF? A printer? Which printer? Drivers up to date?
Recompiled the app with the latest release?
Which fonts? Installed?
Ahmad_kelany 5-Jun-18 11:28am    
Hello Gerry,
Thanks for replying,

What fonts are the RDLC "files" looking for? (It's XML).

It is not missing fonts at all, so it is not looking for fonts,
the fonts are all installed on the PC, and the problem manifests when the font property of any element in the report is set to any OpenTypeFont (e.g. Diavlo,Fertigo).

What does "print" mean? To PDF? A printer? Which printer? Drivers up to date?

to PDF or to a printer raises the same issue, and all the drivers are up to date.

Recompiled the app with the latest release?

did that with no avail.

Which fonts? Installed?

the ones I tried are :
(TektonPro,Diavlo,Fertigo) all are OpenType fonts => raises the issue.
(Cairo , NotoNaskhArabic , ae_Alhor) all are TrueType fonts => no issue..prints normally.

All these fonts are installed on the PC.
[no name] 5-Jun-18 11:49am    
The only "TrueType" font I have is for my 32-bit Hololens; I have no TT on Windows 10 or 8.1 (64 bit).

I would remove all your TT fonts and see what happens. Or check your "text" handling re: "unicode" support non-support; that's where the conflict might be.

Ahmad_kelany 5-Jun-18 12:59pm    
Alright,
Apparently my interpretation was a bit off. :)

I tried some other OpenType fonts and it printed normally.

So the problem is not whether the font is OpenType or TrueType, but still I can't identify what causes the issue.
[no name] 5-Jun-18 14:17pm    
Then it could be "anything"; including file corruption; licensing; encoding; code page; control panel settings; ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900