function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
yvonnekyvonnek 

Adding VF page

I am trying to create this VF page and the following errors appear:

 

Error: salesinvoicebulkprint line 13, column 10: The markup in the document following the root element must be well-formed   Error: The markup in the document following the root element must be well-formed.

 

What am I missing?  Here is the beginning of my code:

 

<apex:page standardController="c2g__codaInvoice__c" recordSetVar="invoices" extensions="ffps_scnbtnb.PrintInvoicesController" action="{!preCheck}" renderAs="{!IF(isError,null,'pdf')}" showHeader="{!IF(isError,true,false)}" sidebar="{!IF(isError,true,false)}" standardStylesheets="{!IF(isError,true,false)}" >

<apex:outputPanel rendered="{!NOT(isError)}">
<apex:repeat value="{!InvoiceList}" var="invoice">
<apex:repeat value="{!invoice.invoice}" var="salesInvoice">
<!-- CONTENT -->
</apex:repeat>
</apex:repeat>
</apex:outputPanel>

</apex:page>

<apex:variable var="styleFontColor" value="#000000" />
<apex:variable var="styleHeaderBGColor" value="#E4EAF4" />
<apex:variable var="styleHeaderFontColor" value="#000000" />
<apex:variable var="styleLineColor" value="#3B5E91" />
<head>
<style type="text/css">

sfdcfoxsfdcfox
The last line of code must be </apex:page>. Everything else must be contained within.
georggeorg

please use the following code. This may help

 

<apex:page standardController="c2g__codaInvoice__c" recordSetVar="invoices" extensions="ffps_scnbtnb.PrintInvoicesController" action="{!preCheck}" renderAs="{!IF(isError,null,'pdf')}" showHeader="{!IF(isError,true,false)}" sidebar="{!IF(isError,true,false)}" standardStylesheets="{!IF(isError,true,false)}" >
<apex:outputPanel rendered="{!NOT(isError)}">
<apex:repeat value="{!InvoiceList}" var="invoice">
<apex:repeat value="{!invoice.invoice}" var="salesInvoice">
<!-- CONTENT -->
</apex:repeat>
</apex:repeat>
</apex:outputPanel>
<apex:variable var="styleFontColor" value="#000000" />
<apex:variable var="styleHeaderBGColor" value="#E4EAF4" />
<apex:variable var="styleHeaderFontColor" value="#000000" />
<apex:variable var="styleLineColor" value="#3B5E91" />
<head>
<style type="text/css">
</style>
</head>
</apex:page>