public bool UseSameLine
{
get { return useSameLine; }
set { useSameLine = value; }
}
if (printObjects != null && printObjects.Count > 0)
{
List<IProjPrintPrimitive> printPrimitives = new List<IProjPrintPrimitive>();
for (int index = 0; index < printObjects.Count; index++)
{
switch (printObjects[index].ContentType)
{
case ContentTypes.Text:
{
List<ProjPrintContent> textPrintContents = new List<ProjPrintContent>();
index -= 1;
do { index += 1; textPrintContents.Add(printObjects[index]); }
while (index + 1 < printObjects.Count - 1 && printObjects[index + 1].ContentType == ContentTypes.Text);
ProjPrimitiveText primitiveText = new ProjPrimitiveText();
primitiveText.ConstructVisual(textPrintContents, printConfiguration, band, pageAvailWidth, pageAvailHeight);
}
break;
}}}
In the above code "contentType.Text" i have to print the datas in the same line.
For exampe: hi
hello
have to print in same line like (hi hello)
the value of bool useSameLine will be passed in view level.
so what logic i can add in the above code to implement UseSameLine(setting this option) ? Please help.
I need the logic to append the value (printObjects[index]); value) in the below loop , Iam new to this please help.thanks in advance
do
{
index += 1;
textPrintContents.Add(printObjects[index]);
}
while (index + 1 < printObjects.Count - 1 && printObjects[index + 1].ContentType == ContentTypes.Text);