我曾经通过以下代码在Vba Access中打印Excel文件:
Excel_App.ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
如何在Vba Access中从Excel文件制作PDF?
答案 0 :(得分:1)
你应该尝试这种方法..
示例强> -
$isbn = "9781451648546"; // Steve Jobs book
$json = file_get_contents('https://www.googleapis.com/books/v1/volumes?q=isbn:'.$isbn);
$obj = json_decode( $json );
$items=$obj->items;
foreach( $items as $item ){
/* Main keys */
$vol=$item->volumeInfo;
$sales=$item->saleInfo;
$access=$item->accessInfo;
$info=$item->searchInfo;
/* subkeys */
$title=$vol->title;
$authors=implode( $vol->authors );
$type=$vol->printType;
/* etc */
echo $title, $authors, $type, '<br />';//etc
}
/* to clearly see the data structure try this: */
echo '<pre>',print_r($obj,true),'</pre>';
了解更多信息。转到此Site