Page 1 of 1

Does text on the reports get rendered as images?

Posted: Thu Apr 22, 2010 11:03 am
by haarrrgh
Sorry if the subject is not good to understand - I'm not sure how to call this myself.

I'll just describe what I want to do:

I have a server with a fax software (Tobit Faxware, if that matters - it's a german company).
This software installs a special printer on every machine, and I can send a fax by printing something to this printer.

I can pass the recipient's fax number by putting the following text somewhere in the report:

Code: Select all

@@NUMMER +49123456@@
(where "+49123456" is the recipient's fax number)


When I print this from other software, like MS Word or MS Access, the server recognizes the special command in the report, sends the report to this fax number and deletes the command from the report before faxing.


Now my problem is: when I try this with a Stimulsoft Report, the server doesn't recognize the command.
The report just gets printed to the fax server (including the command text) and the fax server asks for the recipient's number because it couldn't find the one in the report.


Of course, you can do nothing about issues with 3rd party software, but maybe you can help me understand what happens here.
I suppose that Stimulsoft renders the reports in a different way than Word and Access send their documents to the printer.

Maybe Word and Access send text to the printer (so the fax server can recognize the commands), so what do your reports do?
Do you render text as images?
That would explain why the fax server doesn't recognize the commands.

If yes, is there any possibility to send a Stimulsoft Report to the printer, with all text fields REALLY as text?

Thank you!

Does text on the reports get rendered as images?

Posted: Fri Apr 23, 2010 12:52 am
by Jan
Hello,
Maybe Word and Access send text to the printer (so the fax server can recognize the commands), so what do your reports do?
Do you render text as images?
No, our report engine render text as text.
That would explain why the fax server doesn't recognize the commands.

If yes, is there any possibility to send a Stimulsoft Report to the printer, with all text fields REALLY as text?
MS WORD and MS EXCEL uses GDI to draw text. .Net Framework propose GDI PLUS for drawing text in most cases. Please try to set TextQuality property of text component with fax number to WYSIWYG. In this mode report engine will be print text with using GDI instead GDI PLUS. I hope this helps.

Thank you.

Does text on the reports get rendered as images?

Posted: Fri Apr 23, 2010 3:10 am
by haarrrgh
Hello,

thank you for your answer.
Unfortunately it doesn't work - I changed the text quality, but the fax server still doesn't recognize the text.

Is there any other possibility to control how the text is printed (at runtime, for example)?

Thank you!

Does text on the reports get rendered as images?

Posted: Fri Apr 23, 2010 8:01 am
by Jan
Hello,

I don't know how to help you. We use default .Net features to print text.

Thank you.

Does text on the reports get rendered as images?

Posted: Thu Sep 02, 2010 3:31 am
by joro
Hello harrrgh,

we have to same problem as you described above.
We try to send our fax via GFI Faxmaker, but it seems that GFI Faxmaker is unable to parse to faxnumber from our stimulsoft report.

Did you find a solution to make Stimulsoft work with Tobit? Maybe your solution can fix our problem as well.

regads
joro

Does text on the reports get rendered as images?

Posted: Thu Sep 02, 2010 6:33 am
by joro
Hello Stimulsoft Support,

can you please describe the way you are printing the report?
Do you use commands like DrawText to send Text to the printer? Or do you render each page as an image and send it to the printer?

We need to find out, why our fax software doesn't parse the phone number from the report.

best regards

Does text on the reports get rendered as images?

Posted: Thu Sep 02, 2010 7:44 am
by Ivan
Hello,

We use the following code:

Code: Select all

					using (PrintDocument printDocument = new PrintDocument())
					{	
						printDocument.QueryPageSettings += new System.Drawing.Printing.QueryPageSettingsEventHandler(this.OnQueryPageSettings);
						printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.OnPrintPage);
						...
						BeginPrint();
						printDocument.Print();
						StopPrint();
						...
					}

Code: Select all

		private void OnPrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
		{	
			StiPage page = printedReport.RenderedPages[index];
			...
			page.Paint(e.Graphics);
			...
		}
Thank you.