07-02-2008, 10:17
|
Ganesh
Joined on 01-08-2008
Posts 21
|
Re: Text file loading is taking long time...Please help!!!
|
 
 
|
|
|
Thanks.
I tried loading single page(as you suggessted) and save them, for 1hour it just converted only 29pages only...
Could you please give some sample to calcuate the content per page based on the below code...
_codecs.Options.Txt.Load.Enabled = true;
_codecs.Options.Txt.Load.TopMargin = 1;
_codecs.Options.Txt.Load.BottomMargin = 1;
_codecs.Options.Txt.Load.LeftMargin = 1;
_codecs.Options.Txt.Load.RightMargin = 1;
_codecs.Options.Txt.Load.Bold = false;
_codecs.Options.Txt.Load.FaceName = "Arial";
_codecs.Options.Txt.Load.FontSize = 10;
_codecs.Options.Txt.Load.FontColor = new RasterColor(System.Drawing.Color.Black);
_codecs.Options.Load.XResolution = 150;
_codecs.Options.Load.YResolution = 300;
because some of the line in the text file are longer one so while converting image it coming as 2lines(word warp) sometime morethan 3times...
It will be greatly helpful if you can provide some sample.
Also I am getting one error message while loading
text(even 2kb) file...
Error Message:
---------------
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
StackTrace:
------------
at a(UInt32 )\r\n at a(Stream , i , ICI_PUT_EXTRA )\r\n at a(Stream , i , ICI_PUT_EXTRA , LOADFILEOPTION )\r\n at a(INFODISPATCH )\r\n at Leadtools.Kernel.Codecs.Codec.fltInfo(Object pDispatch)\r\n at Leadtools.Kernel.Codecs.KernelCodecs.a(String , FILEINFO , UInt32 , INFOLOADSTATE , Object , Object , LOADFILEOPTION , LOADDISPATCH )\r\n at Leadtools.Kernel.Codecs.KernelCodecs.a(String , BitmapHandle , UInt32 , WinRect& , Int32 , Int32 , UInt32 , FILEREADCALLBACK , Object , UInt32 , INFOLOADSTATE , LOADFILEOPTION , FILEINFO , LOADCUSTOMFILEOPTION , LOADCUSTOMFILECALLBACK , Object , Int32 , LAYERINFO[] )\r\n at Leadtools.Kernel.Codecs.KernelCodecs.a(String , BitmapHandle , UInt32 , WinRect& , Int32 , Int32 , UInt32 , FILEREADCALLBACK , Object , UInt32 , LOADFILEOPTION , FILEINFO , LOADCUSTOMFILEOPTION , LOADCUSTOMFILECALLBACK , Object , Int32 , LAYERINFO[] )\r\n at Leadtools.Kernel.Codecs.KernelCodecs.L_LoadFile(String pszFile, BitmapHandle pBitmap, UInt32 uStructSize, Int32 nBitsPerPixel, In
t32 nOrder, UInt32 uFlags, FILEREADCALLBACK pfnCallback, Object pUserData, LOADFILEOPTION pLoadOptions, FILEINFO pFileInfo)\r\n at Leadtools.Codecs.RasterCodecs.a(BitmapHandle A_0, b A_1)\r\n at Leadtools.Codecs.RasterCodecs.a(b A_0)\r\n at Leadtools.Codecs.RasterCodecs.Load(String fileName, Int32 bitsPerPixel, CodecsLoadByteOrder order, Int32 firstPage, Int32 lastPage)\r\n
Thanks,
Ganesh.
|
|
|
|
|
Report
|
|
|
|