private void RetrievePrinterSettings(XmlTextWriter writer, IJPMessage m, IJP ijp) { writer.WriteStartElement("Printer"); { { writer.WriteAttributeString("Make", "Hitachi"); //IJPUnitInformation ui = (IJPUnitInformation)ijp.GetUnitInformation(); //writer.WriteAttributeString("Model", ui.TypeName); } writer.WriteStartElement("PrintHead"); { writer.WriteAttributeString("Orientation", m.CharacterOrientation.ToString()); } writer.WriteEndElement(); // PrintHead writer.WriteStartElement("ContinuousPrinting"); { writer.WriteAttributeString("RepeatInterval", m.RepeatIntervals.ToString()); writer.WriteAttributeString("PrintsPerTrigger", m.RepeatCount == 0 ? "1" : m.RepeatCount.ToString()); } writer.WriteEndElement(); // ContinuousPrinting writer.WriteStartElement("TargetSensor"); { writer.WriteAttributeString("Filter", m.TargetSensorFilter.ToString()); writer.WriteAttributeString("SetupValue", m.TimeSetup.ToString()); writer.WriteAttributeString("Timer", m.TargetSensorTimer.ToString()); } writer.WriteEndElement(); // TargetSensor writer.WriteStartElement("CharacterSize"); { writer.WriteAttributeString("Width", m.CharacterWidth.ToString()); writer.WriteAttributeString("Height", m.CharacterHeight.ToString()); } writer.WriteEndElement(); // CharacterSize writer.WriteStartElement("PrintStartDelay"); { writer.WriteAttributeString("Forward", m.PrintStartDelayForward.ToString()); writer.WriteAttributeString("Reverse", m.PrintStartDelayReverse.ToString()); } writer.WriteEndElement(); // PrintStartDelay writer.WriteStartElement("EncoderSettings"); { writer.WriteAttributeString("HighSpeedPrinting", m.HiSpeedPrint.ToString()); writer.WriteAttributeString("Divisor", m.PulseRateDivisionFactor.ToString()); writer.WriteAttributeString("ExternalEncoder", m.ProductSpeedMatching.ToString()); } writer.WriteEndElement(); // EncoderSettings writer.WriteStartElement("InkStream"); { writer.WriteAttributeString("InkDropUse", m.InkDropUse.ToString()); writer.WriteAttributeString("ChargeRule", m.InkDropChargeRule.ToString()); } writer.WriteEndElement(); // InkStream if (ijp != null) { writer.WriteStartElement("ClockSystem"); { writer.WriteAttributeString("HourMode24", ijp.GetHourMode24().ToString()); } writer.WriteEndElement(); // ClockSystem RetrieveSubstitutions(writer, m, ijp); RetrieveUserPatternSettings(writer, m, ijp); } } writer.WriteEndElement(); // Printer }