//-------------------------------------------------
// Default template for RemotePrintParams window
//	It perform Print calls the next request
//-------------------------------------------------
#include "indexcommon.txt"

Begin Component RemotePrint.Title
	Begin Label
		Label = $UserData.ReportName
	End
End

Begin Component RemotePrint.FromPageEditBox
	Begin EditBox
		Name = FromPage
		Id = FromPage
		WidthInChar	= 10
		Value = String($Info.FromPage)
	End
End

Begin Component RemotePrint.ToPageEditBox
	Begin EditBox
		Name = ToPage
		Id = ToPage
		WidthInChar	= 10
		Value = String($ Info.ToPage)
	End
End

Begin Component RemotePrint.CopiesEditBox
	Begin EditBox
		Name = Copies
		Id = Copies
		WidthInChar	= 5
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintCopiesDefaultValue.value))
		{
			Value = Number(%User.ApplicationFeatures.ReportRemoutePrintCopiesDefaultValue.value)
		}
		else
		{
			Value = String($Info.Copies)
		}
	End
End

Begin Component RemotePrint.DestinationEditBox
	Begin Counter IsPrintDefParams //FSR support
		value=0
	End
	
	Begin StrVariable Destination 
			value=String()
	End
			
	foreach($Info.PrintDefParams)
	{
		if(eq([].name, dest))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Dest
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintDestDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintDestDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			
			Begin StrVariable Destination 
					value=[].value
			End
		}
		
		Begin Counter IsPrintDefParams
			value=1
		End
	}
End

Begin Component RemotePrint.UserDestinationEditBox
	Begin StrVariable UserDestination 
					value=String()
	End
	foreach($Info.PrintDefParams)
	{
		if(eq([].name, userdest))
		{
			Begin EditBox
				Name = Print + [].name
				Id = UserDest
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintUserDestDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintUserDestDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			
			Begin StrVariable UserDestination 
					value=[].value
			End
		}
	}
End
Begin Component RemotePrint.RulerEditBox
	Begin StrVariable Ruler
					value= String()
	End
	
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, ruler))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Ruler
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintRulerDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintRulerDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			
			Begin StrVariable Ruler
					value=[].value
			End
		}
		
	}
End

Begin Component RemotePrint.WriterEditBox
		Begin StrVariable Writer 
					value=String()
		End
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, writer))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Writer
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintWriterDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintWriterDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			Begin StrVariable Writer 
					value=[].value
			End
		}
	}
End

Begin Component RemotePrint.ClassEditBox
	Begin StrVariable Class 
			value=String()
	End
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, class))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Class
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintClassDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintClassDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			Begin StrVariable Class 
					value=[].value
			End
		}
	}
End

Begin Component RemotePrint.FormEditBox
	Begin StrVariable Form 
				value=String()
	End
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, form))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Form
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintFormDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintFormDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			Begin StrVariable Form 
					value=[].value
			End
		}
	}
End

Begin Component RemotePrint.FormdefEditBox
	Begin StrVariable Formdef
				value=String()
	End
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, formdef))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Formdef
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintFormdefDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintFormdefDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			Begin StrVariable Formdef 
					value=[].value
			End
		}
	}
End

Begin Component RemotePrint.PagedefEditBox
	Begin StrVariable Pagedef 
			value=String()
	End
	ForEach($Info.PrintDefParams)
	{
		if(eq([].name, pagedef))
		{
			Begin EditBox
				Name = Print + [].name
				Id = Pagedef
				WidthInChar	= 15
				when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintPagedefDefaultValue.value))
				{
					Value = %User.ApplicationFeatures.ReportRemoutePrintPagedefDefaultValue.value
				}
				else
				{
					Value = [].value
				}
			End
			Begin StrVariable Pagedef 
					value=[].value
			End
		}
	}
End

Begin Component RemotePrint.Action
	Begin Event.OnClick
		PreCondition = (*)  Action ("ValidateForm()")

		//-----------------------------------------------------------------
		// Print Request
		//-----------------------------------------------------------------
		Begin Request
			RequestType	= RemotePrint
			ElemTemplate = "empty.txt"
			when(eq(%User.Applicationfeatures.ReportListRemotePrintShowPrintSuccessfulFeature.value, 1))
			{
				StrTemplate	= "printsuccessful.htm"
			}
			else
			{
				StrTemplate	= "close.htm"
			}

			SID     	= WhenExists($STD.csid, $params.sid)
			FID			= $Params.FID
			Lang		= $Params.Lang
			RID     	= $Params.RID

			when(eq($UserData.HasIndexes, "1"))
			{
				IndexPath = (*) Action("GetSelectionResults()")
			}
			else
			{
				IndexPath = $Params.IndexPath
			}

			DefParams   = (*) Action("GetPrintParams()")
			Copies      = (*) Action("GetCopies()")
			FromPage    = (*) Action("GetFromPage()")
			ToPage      = (*) Action("GetToPage()")
			PagesType   = (*) Action("GetPagesRadioButton()")
			Immediate	= (*) Action("GetDefferedRadioButton()")
			ErrorFlowStr	= "onerrorclose.htm"
			ErrorFlowElem	= "onerrorclose.txt"
		End
	End
End

if( (ExistsAndEqual(%User.Applicationfeatures.ReportListRemotePrintDefferedFeature.ischecked, 1) && 
	  eq(Counter.IsPrintDefParams(),1)) || 
	  (ExistsAndEqual(%User.Applicationfeatures.reportremoteprintprintmissionsinimmediatemode.ischecked,"1")))
{

Begin Component RemotePrint.DefferedRadioButton
	Begin Radio
		Name = DefferedRadioButton
		Id = Deffered
		Label = "{!WA RemotePrint.Deferred}"

		when( eq(%User.Applicationfeatures.ReportListRemotePrintDefferedDefaultValueFeature.value,0) )
		{
			Checked	= 0
		}
		else
		{
			Checked	= 1
		}
		value = "0"
		RTL = {!WA lang.IsRTL}
	End
End
Begin Component RemotePrint.ImmediateRadioButton
	Begin Radio
		Name	= DefferedRadioButton
		Id		= Immediate
		Label	= "{!WA RemotePrint.Immediate}"
		Checked	= $Info.Immediate
		value	= "1"
		RTL = {!WA lang.IsRTL}
	End
End

Begin Component RemotePrint.MissionsEditBox1
		ForEach($Info.PrintDefParams)
		{
			if(eq([].name, PrintMission1))
			{
				Begin EditBox
					Name = Print + [].name
					Id = Mission1
					WidthInChar	= 5
					Value = [].value
				End
			}
		}
	End

	Begin Component RemotePrint.MissionsEditBox2
		ForEach($Info.PrintDefParams)
		{
			if(eq([].name, PrintMission2))
			{
				Begin EditBox
					Name = Print + [].name
					WidthInChar	= 5
					Value = [].value
				End
			}
		}
	End

	Begin Component RemotePrint.MissionsEditBox3
		ForEach($Info.PrintDefParams)
		{
			if(eq([].name, PrintMission3))
			{
				Begin EditBox
					Name = Print + [].name
					WidthInChar	= 5
					Value = [].value
				End
			}
		}
	End

	Begin Component RemotePrint.MissionsEditBox4
		ForEach($Info.PrintDefParams)
		{
			if(eq([].name, PrintMission4))
			{
				Begin EditBox
					Name = Print + [].name
					WidthInChar	= 5
					Value = [].value
				End
			}
		}
	End

	Begin Component RemotePrint.MissionsEditBox5
		ForEach($Info.PrintDefParams)
		{
			if(eq([].name, PrintMission5))
			{
				Begin EditBox
					Name = Print + [].name
					WidthInChar	= 5
					Value = [].value
				End
			}
		}
	End
}

Begin Component RemotePrint.DefferedDefaultValue
		Begin Label
			
			when( eq(%User.Applicationfeatures.ReportListRemotePrintDefferedDefaultValueFeature.value,0) )
			{
				Label	= String(1)
			}
			else
			{
				Label	= String(0)
			}
		End
End


Begin Component HasIndex
	Begin Label
		when(eq($UserData.HasIndexes, "1"))
		{
			label = true
		}
		else
		{
			label = false
		}
	End
End

Begin Component ForceIndex
	Begin Label
		when(existsandequal($UserData.Force, true))
		{
			label = "true"
		}
		else
		{
			label = "false"
		}
	End
End

Begin Component PagesLimit
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportPrintPageLimit.value))
		{
			Label = %User.ApplicationFeatures.ReportPrintPageLimit.value
		}
		else
		{
			Label = "0"
		}
	End
End

Begin Component  HideHelp
	if(eq(%User.Applicationfeatures.Helpfeature.ischecked , 0) )
	{
		Begin Label
			label = "HideHelpUI();"
		End
	}
End


//Application tree options:
Begin Component ShowCopies
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintCopies.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component CopiesDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintCopiesDefaultValue.value))
		{
				Label = %User.ApplicationFeatures.ReportRemoutePrintCopiesDefaultValue.value
		}
		else
		{
				Label =String($Info.Copies)
		}
	End
End


Begin Component ShowDestination
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintDest.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component DestinationDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintDestDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintDestDefaultValue.value
		}
		else
		{
			Label =	StrVariable.Destination()
		}
	End
End

Begin Component ShowUserDestination
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintUserDest.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component UserDestinationDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintUserDestDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintUserDestDefaultValue.value
		}
		else
		{
			Label = StrVariable.UserDestination()
		}
	End
End

Begin Component ShowRuler
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintRuler.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component RulerDefaultValue

	Begin Label
		when(ExistsAndNotEmpty(	%User.ApplicationFeatures.ReportRemoutePrintRulerDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintRulerDefaultValue.value
		}
		else
		{
			Label = StrVariable.Ruler()
		}
	End
End

Begin Component ShowWriter
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintWriter.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component WriterDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(	%User.ApplicationFeatures.ReportRemoutePrintWriterDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintWriterDefaultValue.value
		}
		else
		{
			Label = StrVariable.Writer()
		}
	End
End


Begin Component ShowClass
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintClass.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component ClassDefaultValue
	Begin Label
	when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintClassDefaultValue.value))
	{
		Label = %User.ApplicationFeatures.ReportRemoutePrintClassDefaultValue.value
	}
	else
	{
		Label = StrVariable.Class()
	}
	End
End

Begin Component ShowForm
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintForm.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component FormDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintFormDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintFormDefaultValue.value
		}
		else
		{
			Label = StrVariable.Form()
		}
	End
End

Begin Component ShowFormdef
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintFormdef.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component FormdefDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintFormdefDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintFormdefDefaultValue.value
		}
		else
		{
			Label = StrVariable.Formdef()
		}
	End
End

Begin Component ShowPagedef
	Begin Label
		when(eq(%User.ApplicationFeatures.ReportRemoutePrintPagedef.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

Begin Component PagedefDefaultValue
	Begin Label
		when(ExistsAndNotEmpty(%User.ApplicationFeatures.ReportRemoutePrintPagedefDefaultValue.value))
		{
			Label = %User.ApplicationFeatures.ReportRemoutePrintPagedefDefaultValue.value
		}
		else
		{
			Label = StrVariable.Pagedef()
		}
	End
End

Begin Component HasPrintRequisites
	Begin Label
		when(ExistsAndEqual($Info.IsSupported.PrintRequisites, true)  && eq(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeature.ischecked, 1))
		{
			Label = "true"
		}
		else
		{
			Label = "false"
		}
	End
End

if(ExistsAndEqual($Info.IsSupported.PrintRequisites, true)  && eq(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeature.ischecked, 1))
{
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureEmail.IsChecked,1))
	{
		Begin Component RemotePrint.EmailLabel
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureEmail{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.EmailEditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Email))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Email
						WidthInChar	= 100
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData1.IsChecked,1))
	{
		Begin Component RemotePrint.Data1Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData1{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data1EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data1))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data1
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData2.IsChecked,1))
	{
		Begin Component RemotePrint.Data2Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData2{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data2EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data2))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data2
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData3.IsChecked,1))
	{
		Begin Component RemotePrint.Data3Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData3{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data3EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data3))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data3
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData4.IsChecked,1))
	{
		Begin Component RemotePrint.Data4Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData4{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data4EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data4))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data4
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData5.IsChecked,1))
	{
		Begin Component RemotePrint.Data5Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData5{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data5EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data5))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data5
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData6.IsChecked,1))
	{
		Begin Component RemotePrint.Data6Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData6{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data6EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data6))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data6
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData7.IsChecked,1))
	{
		Begin Component RemotePrint.Data7Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData7{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data7EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data7))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data7
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData8.IsChecked,1))
	{
		Begin Component RemotePrint.Data8Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData8{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data8EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data8))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data8
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData9.IsChecked,1))
	{
		Begin Component RemotePrint.Data9Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData9{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data9EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data9))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data9
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData10.IsChecked,1))
	{
		Begin Component RemotePrint.Data10Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureData10{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Data10EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Data10))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Data10
						WidthInChar	= 35
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr1.IsChecked,1))
	{
		Begin Component RemotePrint.Addr1Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr1{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr1EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr1))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr1
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr2.IsChecked,1))
	{
		Begin Component RemotePrint.Addr2Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr2{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr2EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr2))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr2
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr3.IsChecked,1))
	{
		Begin Component RemotePrint.Addr3Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr3{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr3EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr3))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr3
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr4.IsChecked,1))
	{
		Begin Component RemotePrint.Addr4Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr4{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr4EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr4))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr4
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr5.IsChecked,1))
	{
		Begin Component RemotePrint.Addr5Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr5{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr5EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr5))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr5
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr6.IsChecked,1))
	{
		Begin Component RemotePrint.Addr6Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr6{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr6EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr6))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr6
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr7.IsChecked,1))
	{
		Begin Component RemotePrint.Addr7Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr7{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr7EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr7))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr7
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr8.IsChecked,1))
	{
		Begin Component RemotePrint.Addr8Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr8{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr8EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr8))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr8
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr9.IsChecked,1))
	{
		Begin Component RemotePrint.Addr9Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr9{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr9EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr9))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr9
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}
	
	if (ExistsAndEqual(%User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr10.IsChecked,1))
	{
		Begin Component RemotePrint.Addr10Label
			Begin Label
					Label = %User.ApplicationFeatures.ReportListRemotePrintPrintRequisitesFeatureAddr10{!WA Lang.DesktopName}.value
			End
		End
		Begin Component RemotePrint.Addr10EditBox
			ForEach($Info.PrintDefParams)
			{
				if(eq([].name, Addr10))
				{
					Begin EditBox
						Name = Print + [].name
						Id = Addr10
						WidthInChar	= 52
						Value = replace([].value,"'","\'")
					End
				}
			}
		End
	}

}


Begin Component RemotePrint.ShowPrintMissionsInImmediateMode
	Begin Label
		Label = %User.Applicationfeatures.reportremoteprintprintmissionsinimmediatemode.ischecked
	End
End