Background Color:
 
Background Pattern:
Reset
Search

Forum

Please Log In

We want you to contribute! 

This forum is a moderated environment. 
We try to keep it neat and tidy. In order to access the forum content we would like you to either or register.

HomeHomeScryberScryberDevelopment Que...Development Que...Component - Ref "file not found" if declared in <section>><footer>Component - Ref "file not found" if declared in <section>><footer>
Previous
 
Next
New Post
7/29/2017 2:17 PM
 

Hello,

I don't understand why if I call a <pdf:component-ref> source int the contents of a sections the compiler finds the file, if i put it in the footer it gives me file not found ie:

<?xml version="1.0" encoding="utf-8" ?>
<?scryber parser-mode='Strict' parser-log='false' append-log='false' log-level='Warnings' ?>
<pdf:Section  id="PersonnelReport"
              xmlns:pdf="Scryber.Components, Scryber.Components, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:style="Scryber.Styles, Scryber.Styles, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:data="Scryber.Data, Scryber.Components, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe">
  <Content>


    <pdf:Div>
      <pdf:Div id="outerdiv"  >
        <pdf:Div style:x="10" style:y="10">
          <pdf:Image  img-data="{item:PersonnelPhoto}" style:class="myLogoImage" style:height="55" style:width="50" />
        </pdf:Div>
        <pdf:Div style:x="80" style:y="10">
          <pdf:Label style:class="myH1" text="{item:Personnel.Nom}"  />
          <pdf:Label style:class="myH1" text="{item:Personnel.Prenom}" />
        </pdf:Div>
      </pdf:Div>
    </pdf:Div>
   <pdf:Component-Ref source="StandardFooter.pcfx"/>  
</Content>

</pdf:Section>

 

The previous works but if i move the component to the footer scryber give file not found in log:

 

<?xml version="1.0" encoding="utf-8" ?>
<?scryber parser-mode='Strict' parser-log='false' append-log='false' log-level='Warnings' ?>
<pdf:Section  id="PersonnelReport"
              xmlns:pdf="Scryber.Components, Scryber.Components, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:style="Scryber.Styles, Scryber.Styles, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:data="Scryber.Data, Scryber.Components, Version=0.9.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe">
  <Content>


    <pdf:Div>
      <pdf:Div id="outerdiv"  >
        <pdf:Div style:x="10" style:y="10">
          <pdf:Image  img-data="{item:PersonnelPhoto}" style:class="myLogoImage" style:height="55" style:width="50" />
        </pdf:Div>
        <pdf:Div style:x="80" style:y="10">
          <pdf:Label style:class="myH1" text="{item:Personnel.Nom}"  />
          <pdf:Label style:class="myH1" text="{item:Personnel.Prenom}" />
        </pdf:Div>
      </pdf:Div>
    </pdf:Div>
</Content>
<Footer>
     <pdf:Component-Ref source="StandardFooter.pcfx"/>  
</Footer>
</pdf:Section>

 

It has something to do with relative source, but the base folder should be the same weather in content or footer, also please note these are all embedded ressources, no files on disk.

Also I tried to apply footer from code with a parser but cannot find a method that lets me do so..

 

Regards,

Tim

 

 

 
Previous
 
Next
HomeHomeScryberScryberDevelopment Que...Development Que...Component - Ref "file not found" if declared in <section>><footer>Component - Ref "file not found" if declared in <section>><footer>