View Full Version : Problems with testFrames
skunker
May 12, 2006, 11:50:10
hi,
Weīre evaluating your TXTextControl, itīs possibly the best Iīve ever seen, but
I got some Problems:
Nr. I:
any ideas why a iterative change of the exportFilter of images contained in Textframes get my file size to "Crazy-High" (100kb -> 37mb) (hint: there are no images in the textframes - finds the images inside the document - but why? - I imagine the parser inserts the images (new) inside the Fields as the new format)
and (a lot more important)
Nr. II:
why can i not clear the text inside a textFrame
textFrame.Selection.Text = ""; didnīt work. it still containes the whole text :confused: .. bug in set-method of TXTextControl.TextFrame.Selection.Text? Some kind of write protected?
Well at least I can paste Text in, but not delete it.
Thanks
best regards
... testversion V12 .net server... language c#
Gunnar Giffey
May 15, 2006, 17:00:41
Hello skunker,
Regarding issue 1:
Could you send me a small demo project, that makes your problem reproducible on my machine?
Please send me the sample folder as ZIP archive to gunnar@textcontrol.com
Issue 2:
I was able to reproduce that and forwarded this issue to a developer.
As soon as I have any feedback I will get back to this thread.
skunker
May 16, 2006, 10:56:13
hi,
about issue #1, got it soled a better way. I`m sorry to say, that i can not rebuild it compleate. but I remember some things:
The mistake was, to copy a Textframe to another TXTextControl.ServerTextControl, and doing the changes with serverTextControl.Selection.Text =""; witch could not be done with textFrame.Selection.Text ="";
(not seeing that it won`t work, too - caused by the issue #2)
not working & slow:
frame.Selection.Save(out data, TXTextControl.BinaryStreamType.InternalFormat);
serverTextControl2.Load(data, TXTextControl.BinaryStreamType.InternalFormat);
(control = serverTextControl2 (witch represents a TextFrame)
private void Set_Image_Compression_And_Exportfilter(ref TXTextControl.ServerTextControl control, ref int compression, ref int exportFilter)
{
if (control.Images.Count != 0)
{
// Set Compression and export filter in a loop for each image
foreach (TXTextControl.Image image in control.Images)
{
image.ExportCompressionQuality = compression;
image.ExportFilterIndex = exportFilter;
}
}
}
good & fast:
private void Set_FrameImage_Compression_And_Exportfilter(ref TXTextControl.ServerTextControl control, ref int compression, ref int exportFilter)
{
foreach(TXTextControl.TextFrame frame in control.TextFrames)
{
foreach(TXTextControl.Image image in frame.Images)
{
image.ExportCompressionQuality = compression;
image.ExportFilterIndex = exportFilter;
}
}
}
so issue #1 is solved.
but ...
Issue #2 is that kind of important, that I can say, the parser is almoast useless, if it can't be solved in some way. :( Iīll keep on trying.
best regards, Skunker
skunker
May 18, 2006, 17:49:17
any answers on this issue? or do you have any clue how I could work it around?
some kind of read all props of a textframe, delete the whole thing & build it new?
I tried to rebuild(deleted the whole thing a time ago) the issue #1, but it didnīt work the same way. so far it should have been an mistake in my code, somehow.
And just another question:
Can I set the process priority of the load/save process?
Best Regards,
Skunker
Gunnar Giffey
May 23, 2006, 17:36:48
Skunker,
Sorry, I do not have any update on this. The development team is still analyzing this.
Regarding the process priority:
This is not a feature of TX Text Control, but I think you could use the PriorityClass property of the Process object.