Toon posts:

asp.NET en data access fiels.

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb uit een access programma een report opgeslagen als data acccess bestand. Dit heb ik gedaan om dat er speciale afmetingen in staan om te printen en die moetne kloppen. Maar wanneer ik dat veld omzet naar asp.NET dan kan ik hem wel gebruiken maar zogauw ik hem run zegt hij dat hij niet de goeie data source kan vinden. Hoe kan ik dit eruit halen want ik ga hem met SQL vullen aan de hand van een post. Is dit mogelijk?

  • gorgi_19
  • Registratie: Mei 2002
  • Laatst online: 18:08

gorgi_19

Kruimeltjes zijn weer op :9

Tenzij MS Access een kant en klaar HTML bestand genereert, kan je het vergeten.

ASP.Net, en dan vooral de gegenereerde HTML, heeft absoluut geen weet van wat jij in MS Access hebt bedacht voor afmetingen.

Je zult dus opnieuw de controls op je webform moeten formatten met behulp van CSS.

Digitaal onderwijsmateriaal, leermateriaal voor hbo


Verwijderd

Topicstarter
Mijn excuses ik zag plots een regel staan dat hij opzoek was naar:

<PARAM NAME="XMLData" VALUE='<xml xmlns:a="urn:schemas-microsoft-com:office:access"> <a:DataSourceControl> <a:OWCVersion>10.0.0.5605 </a:OWCVersion> <a:ConnectionString>Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ROrder2;Data Source=127.0.0.1;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=IMPREZA555;Use Encryption for Data=False;Tag with column collation when possible=False</a:ConnectionString> <a:MaxRecords>10000</a:MaxRecords> <a:GridX>10</a:GridX> <a:GridY>10</a:GridY> <a:OfflineType>2</a:OfflineType> <a:OfflinePublication></a:OfflinePublication> <a:XMLLocation>0</a:XMLLocation> <a:XMLDataTarget></a:XMLDataTarget> <a:ConnectionFile></a:ConnectionFile> <a:ElementExtension> <a:ElementID>Artikelnr</a:ElementID> <a:ControlSource>Artikelnr</a:ControlSource> </a:ElementExtension> <a:ElementExtension> <a:ElementID>FactuurOmsch</a:ElementID> <a:ControlSource>FactuurOmschrijving</a:ControlSource> </a:ElementExtension> <a:ElementExtension> <a:ElementID>Tekst174</a:ElementID> <a:ControlSource>Korting</a:ControlSource> </a:ElementExtension> <a:ElementExtension> <a:ElementID>Aantal</a:ElementID> <a:ControlSource>Aantal</a:ControlSource> </a:ElementExtension> <a:ElementExtension> <a:ElementID>regeltotaal</a:ElementID> <a:ControlSource>regeltotaal</a:ControlSource> <a:Format>Euro Currency</a:Format> </a:ElementExtension> <a:ElementExtension> <a:ElementID>VerkoopPrijs</a:ElementID> <a:ControlSource>VerkoopPrijs</a:ControlSource> <a:Format>Euro Currency</a:Format> </a:ElementExtension> <a:ElementExtension> <a:ElementID>Totaal</a:ElementID> <a:ControlSource>GroupOfTotaal103</a:ControlSource> </a:ElementExtension> <a:ElementExtension> <a:ElementID>GroupLevel0NavLabel</a:ElementID> <a:RecordsetLabel>GroupLevel0 |0 of |2;GroupLevel0 |0-|1 of |2</a:RecordsetLabel> </a:ElementExtension> <a:ElementExtension> <a:ElementID>viewReportFactuurNavLabel</a:ElementID> <a:RecordsetLabel>viewReportFactuur |0 of |2;viewReportFactuur |0-|1 of |2</a:RecordsetLabel> </a:ElementExtension> <a:GroupLevel> <a:RecordSource>GroupLevel0</a:RecordSource> <a:DefaultSort>[GroupOfFactuurID103] ASC</a:DefaultSort> <a:HeaderElementId></a:HeaderElementId> <a:FooterElementId>FooterGroupLevel0</a:FooterElementId> <a:CaptionElementId>CaptionGroupLevel0</a:CaptionElementId> <a:RecordNavigationElementId>NavigationGroupLevel0</a:RecordNavigationElementId> <a:DataPageSize>10</a:DataPageSize> <a:GroupFilterControl></a:GroupFilterControl> <a:NoAllowEdits/> <a:NoAllowAdditions/> <a:NoAllowDeletions/> </a:GroupLevel> <a:GroupLevel> <a:RecordSource>viewReportFactuur</a:RecordSource> <a:DefaultSort>[FactuurID] ASC</a:DefaultSort> <a:HeaderElementId>HeaderviewReportFactuur</a:HeaderElementId> <a:FooterElementId></a:FooterElementId> <a:CaptionElementId></a:CaptionElementId> <a:RecordNavigationElementId>NavigationviewReportFactuur</a:RecordNavigationElementId> <a:DataPageSize>10</a:DataPageSize> <a:GroupFilterControl></a:GroupFilterControl> <a:NoAllowEdits/> <a:NoAllowAdditions/> <a:NoAllowDeletions/> </a:GroupLevel> <a:Datamodel a:version="0816"> <a:SchemaRowsource a:id="dbo.viewReportFactuur" a:type="dscView"> <a:SchemaField a:id="FactuurID" a:datatype="3" a:size="4"/> <a:SchemaField a:id="FactuurNr" a:datatype="130" a:size="50"/> <a:SchemaField a:id="OrderOmschrijving" a:datatype="130" a:size="50"/> <a:SchemaField a:id="FactuurDatum" a:datatype="135" a:size="8"/> <a:SchemaField a:id="ContactPersoon" a:datatype="130" a:size="50"/> <a:SchemaField a:id="Adres" a:datatype="130" a:size="50"/> <a:SchemaField a:id="Postcode" a:datatype="130" a:size="50"/> <a:SchemaField a:id="Plaats" a:datatype="130" a:size="50"/> <a:SchemaField a:id="Voetregels" a:datatype="203" a:size="1073741823"/> <a:SchemaField a:id="Vrachtkosten" a:datatype="6" a:size="8"/> <a:SchemaField a:id="BTW" a:datatype="3" a:size="4"/> <a:SchemaField a:id="Artikelnr" a:datatype="130" a:size="50"/> <a:SchemaField a:id="FactuurOmschrijving" a:datatype="130" a:size="50"/> <a:SchemaField a:id="ProductCategorieID" a:datatype="3" a:size="4"/> <a:SchemaField a:id="Korting" a:datatype="3" a:size="4"/> <a:SchemaField a:id="Aantal" a:datatype="3" a:size="4"/> <a:SchemaField a:id="VerkoopPrijs" a:datatype="6" a:size="8"/> <a:SchemaField a:id="DebiteurID" a:datatype="3" a:size="4"/> <a:SchemaField a:id="regeltotaal" a:datatype="6" a:size="8"/> <a:SchemaField a:id="Naam" a:datatype="130" a:size="50"/> <a:SchemaField a:id="OrderNr" a:datatype="3" a:size="4"/> </a:SchemaRowsource> <a:RecordsetDef a:id="viewReportFactuur" a:source="dbo.viewReportFactuur"> <a:PageField a:id="FactuurID"/> <a:PageField a:id="FactuurNr"/> <a:PageField a:id="OrderOmschrijving"/> <a:PageField a:id="FactuurDatum"/> <a:PageField a:id="ContactPersoon"/> <a:PageField a:id="Adres"/> <a:PageField a:id="Postcode"/> <a:PageField a:id="Plaats"/> <a:PageField a:id="Voetregels"/> <a:PageField a:id="Vrachtkosten"/> <a:PageField a:id="BTW"/> <a:PageField a:id="Artikelnr"/> <a:PageField a:id="FactuurOmschrijving"/> <a:PageField a:id="ProductCategorieID"/> <a:PageField a:id="Korting"/> <a:PageField a:id="Aantal"/> <a:PageField a:id="VerkoopPrijs"/> <a:PageField a:id="DebiteurID"/> <a:PageField a:id="regeltotaal"/> <a:PageField a:id="Naam"/> <a:PageField a:id="OrderNr"/> <a:GroupingDef a:id="GroupLevel0"> <a:PageField a:id="[GroupOfTotaal103]" a:source="Regeltotaal" a:total="dscSum" a:groupon="dscEachValue" a:interval="1.0"/> <a:PageField a:id="[GroupOfFactuurID103]" a:source="FactuurID" a:groupon="dscEachValue" a:interval="1.0"/> </a:GroupingDef> </a:RecordsetDef> </a:Datamodel> </a:DataSourceControl> </xml>'>

Dit heb ik niet nodig dus weggehaald en probleem opgelost.
NOgmaals mijn excuses