AW: [Mono-list] Printing

Jay Bennie jay at lincore.co.uk
Tue Nov 1 02:39:49 EST 2005


hi Jan

The java can be used co-ixed with c# and i'm fairly sure there is no 
difficulty with mono - the java will just run - i just lack the 
experiance with mono as i dont use it yet - i tend  to do alot of 
windows GUI development and need SWF to be working before i can swap 
over meaningfully.

ps i think you can also just do mono somejavaapp.jar and it will work

codeing is very simple

in a c# class you simply add java using the using declarations i.e.

using System;
using System.Windows.forms; // a C# lib
using Java.IO;  // a java Lib


namespace sometest
{

public class test1
{
	public test1()
	{
	/*
It's a funny old concept - but as both Laguages use ecma there is no 
change to syntax - all that happens is you have an additional set of 
namespaces - some of which duplicate functionality within the mono/.net 
framework
*/
		Java.IO.TextWriter tmp = new TextWriter("/home/jay/testfile.txt");
	tmp.writeLine("hello world");
	tmp.flush();
	tmp.close();
	}
}

}

Jan Waiz wrote:
> HI Jay,
> 
> thanks for Reply.
> 
> Hm... I think, it will be my Problem too that it is Java :-)
> 
> And it sounds complicate.
> 
> And: If it is not sure that it will work with Mono...
> 
> Regards
> Jan Waiz
> 
> -----Ursprüngliche Nachricht-----
> Von: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] Im Auftrag von Jay Bennie
> Gesendet: Samstag, 29. Oktober 2005 13:03
> An: hamburg at icomedv.de
> Cc: mono-list at lists.ximian.com
> Betreff: Re: [Mono-list] Printing
> 
> Jan Waiz wrote:
> 
>>Hi All,
>>
>> 
>>
>>does anyone have a Tip or an Idea, how it is possible to implement in an 
>>easy manner the Printing of small Reports?
>>
>> 
> 
> 
> I use fop as a frame work for printing reports that need some kind of 
> smart page flow layout, for single page one offs - just draw to the 
> print canvas - like you would if creating any other graphic.
> 
> my problem is that the fop project is java, on MS you simply includes 
> the java Libs for .net and use the nfop project (some one made the 
> nessesary changes) I have no idea how this translates to mono. One day i 
> may get arround to rewriting as a native c# Lib as it's my big itch so 
> to speak - but as always its a time thing
> 
> use xml for data output, then xslt to generate the xsl-fo then process 
> with the fop engin to get the pdf, ps or other pagainated format . worth 
> noteing is there is no to canvas type option yet i.e. for a print 
> preview - as the tool was devleoped to be used in an apache/cocoon env
> 
> hope that helps - Ps the xml-fo stuff can be a bit of a pain, but dont 
> forget that it also supports svg and inline bitmap formats, so use 
> sodipod or scribus for prototyping the pages etc . then cut up the xml 
> for the report
> 
> expect a learning curve on the xslt but once you have these skills, 
> you'll wonder why people still spend stupid ammounts of money on 
> inferior technology
> 
> NB: for someting really simple i suppose you can just generate the 
> xml-fo directly and sent to the fop engine.
> 
> 
> 
> 
>>And if it will run with Mono and IIS ?
>>
>> 
>>
>>I found a lot of Samples in Internet (f.e. www.codeproject.com 
>><http://www.codeproject.com/>) – but they looks to complicate. Must I 
>>use Chrystal? Does it run with Mono?
>>
>> 
>>
>>I think about a Solution, that generates a specific new Page in a new 
>>Explorer-Window – and that’s all. But I did not have any Idea, how I can 
>>do that.
>>
>> 
>>
>>Thanks a lot for any Help!!
>>
>> 
>>
>>Regards
>>
>>Jan Waiz
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Mono-list maillist  -  Mono-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 



More information about the Mono-list mailing list